metrics

package
v1.132.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for metrics.

func NewClient

func NewClient(meter metric.Meter) (*Client, error)

NewClient for metrics.

func (*Client) StreamInterceptor

func (c *Client) StreamInterceptor() grpc.StreamClientInterceptor

StreamInterceptor is a gRPC client-side interceptor that provides prometheus monitoring for Streaming RPCs.

func (*Client) UnaryInterceptor

func (c *Client) UnaryInterceptor() grpc.UnaryClientInterceptor

UnaryInterceptor is a gRPC client-side interceptor that provides prometheus monitoring for Unary RPCs.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server for metrics.

func NewServer

func NewServer(meter metric.Meter) (*Server, error)

NewServer for metrics.

func (*Server) StreamInterceptor

func (s *Server) StreamInterceptor() grpc.StreamServerInterceptor

StreamInterceptor for metrics.

func (*Server) UnaryInterceptor

func (s *Server) UnaryInterceptor() grpc.UnaryServerInterceptor

UnaryInterceptor for metrics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL