Documentation
¶
Overview ¶
Package monitoring provides monitoring functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCStatsInterceptor ¶
type RPCStatsInterceptor struct {
// contains filtered or unexported fields
}
RPCStatsInterceptor provides a gRPC interceptor that records statistics about the RPCs passing through it.
func NewRPCStatsInterceptor ¶
func NewRPCStatsInterceptor(timeSource util.TimeSource, application, component string) *RPCStatsInterceptor
NewRPCStatsInterceptor creates a new RPCStatsInterceptor for the given application/component, with a specified time source.
func (RPCStatsInterceptor) Interceptor ¶
func (r RPCStatsInterceptor) Interceptor() grpc.UnaryServerInterceptor
Interceptor returns a UnaryServerInterceptor that can be registered with an RPC server and will record request counts / errors and latencies for that servers handlers
func (RPCStatsInterceptor) Publish ¶
func (r RPCStatsInterceptor) Publish()
Publish must be called for stats to be visible. The expvar framework will prevent multiple calls to Publish from succeeding.
Click to show internal directories.
Click to hide internal directories.