metrics

package
v0.0.0-...-2220e9e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	RecordRPCMethodCall(method string, start time.Time)
}

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)

Jump to

Keyboard shortcuts

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