Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCMetrics ¶
type RPCMetrics struct { // Count and duration of each RPC method call. MethodCalls *stdprometheus.HistogramVec }
func NewRPCMetrics ¶
func NewRPCMetrics(namespace, subsystem, info string, buckets []float64) RPCMetrics
func (*RPCMetrics) RecordRPCMethodCall ¶
func (m *RPCMetrics) RecordRPCMethodCall(method string, start time.Time)
type RPCNoopMetrics ¶
type RPCNoopMetrics struct{}
func (*RPCNoopMetrics) RecordRPCMethodCall ¶
func (m *RPCNoopMetrics) RecordRPCMethodCall(_ string, _ time.Time)
Click to show internal directories.
Click to hide internal directories.