Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetircLabelMethod = "method" MetircLabelClientIP = "client_ip" MetircLabelCodeMessage = "code_message" )
Variables ¶
View Source
var M = newMetrics()
M is the Metrics instance
Functions ¶
func UnaryServerInterceptorOfCodeMessage ¶
func UnaryServerInterceptorOfCodeMessage(enabledMetric bool) grpc.UnaryServerInterceptor
UnaryServerInterceptorOfCodeMessage returns a new unary server interceptors that timing request
func UnaryServerInterceptorOfTimer ¶
func UnaryServerInterceptorOfTimer(enabledMetric bool) grpc.UnaryServerInterceptor
UnaryServerInterceptorOfTimer returns a new unary server interceptors that timing request
Types ¶
Click to show internal directories.
Click to hide internal directories.