Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterceptorBuilder ¶ added in v0.0.3
type ClientInterceptorBuilder struct { Namespace string // The Prometheus namespace for the metrics. Subsystem string // The Prometheus subsystem for the metrics. Name string // The base name for the metrics to be built. Help string // Help provides the description of the metrics. }
ClientInterceptorBuilder is used to create a UnaryClientInterceptor that collects metrics on gRPC client requests.
func (ClientInterceptorBuilder) BuildUnary ¶ added in v0.0.3
func (b ClientInterceptorBuilder) BuildUnary() grpc.UnaryClientInterceptor
BuildUnary builds and returns a new grpc.UnaryClientInterceptor that will record response time, error count, and active requests metrics.
type ServerInterceptorBuilder ¶ added in v0.0.3
type ServerInterceptorBuilder struct { Namespace string // Namespace for Prometheus metrics Subsystem string // Subsystem is the subset of the namespace Name string // Name of the metric Help string // Help provides some description about the metric Port string // Port where the server is running. If not empty, it will be appended to the address label. }
ServerInterceptorBuilder is a struct used to configure and build UnaryServerInterceptor for gRPC, focusing on metrics like response time, error count, and active request count.
func (ServerInterceptorBuilder) BuildUnary ¶ added in v0.0.3
func (b ServerInterceptorBuilder) BuildUnary() grpc.UnaryServerInterceptor
BuildUnary constructs a UnaryServerInterceptor with Prometheus monitoring.
Click to show internal directories.
Click to hide internal directories.