interceptorprometheus

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 8 Imported by: 0

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

type Metrics added in v0.0.40

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

Jump to

Keyboard shortcuts

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