Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unary grpcType = "unary" ClientStream grpcType = "client_stream" ServerStream grpcType = "server_stream" BidiStream grpcType = "bidi_stream" )
Variables ¶
This section is empty.
Functions ¶
func SplitMethodName ¶
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (*Middleware) StreamServerInterceptor ¶
func (m *Middleware) StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor is a gRPC server-side interceptor that provides Prometheus monitoring for Streaming RPCs.
func (*Middleware) UnaryServerInterceptor ¶
func (m *Middleware) UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor is a gRPC server-side interceptor that provides Prometheus monitoring for Unary RPCs.
type Options ¶
type Options struct { ServiceName string Registerer prometheus.Registerer ErrorToCode func(err error) codes.Code }
Click to show internal directories.
Click to hide internal directories.