Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultInterceptor ¶
func DefaultInterceptor(logger *zap.Logger) []grpc.ServerOption
func RegisterAndServeMetrics ¶
func RegisterAndServeMetrics(httpPort uint16, s *grpc.Server, opts ...ServeMetricsOpt)
RegisterAndServeMetrics httpPort is the port that the metrics will be exposed on under the /_metrics route.
func ServeMetrics ¶
Types ¶
type ServeMetricsOpt ¶
type ServeMetricsOpt func(o serveMetricsOpts) *serveMetricsOpts
func WithPath ¶
func WithPath(p string) ServeMetricsOpt
Click to show internal directories.
Click to hide internal directories.