Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unary = "unary" ClientStream = "client_stream" ServerStream = "server_stream" BidiStream = "bidi_stream" )
Variables ¶
This section is empty.
Functions ¶
func NewStreamServerInterceptor ¶
func NewStreamServerInterceptor(registry metrics.Registry, prefix string) grpc.StreamServerInterceptor
NewStreamServerInterceptor returns a grpc.StreamServerInterceptor that reports metrics to the go-metrics Registry provided. If prefix is not empty, it will be prepended to the metrics keys
func NewUnaryServerInterceptor ¶
func NewUnaryServerInterceptor(registry metrics.Registry, prefix string) grpc.UnaryServerInterceptor
NewUnaryServerInterceptor returns a grpc.UnaryServerInterceptor that reports metrics to the go-metrics Registry provided. If prefix is not empty, it will be prepended to the metrics keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.