gometrics

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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