Help us shape the future of Go! Take the 2026 Go Developer Survey

utilmetric

package
v1.28.30 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceSeparatorByte = '_'
	NamespaceSeparator     = string(NamespaceSeparatorByte)
)

Variables

View Source
var ErrFailedRegistering = errors.New("failed registering metric")

Functions

func AppendNamespace

func AppendNamespace(prefix, suffix string) string

Types

type APIInterceptor

type APIInterceptor interface {
	InterceptRequest(i *rpc.RequestInfo) *http.Request
	AfterRequest(i *rpc.RequestInfo)
}

func NewAPIInterceptor

func NewAPIInterceptor(registry metric.Registry) (APIInterceptor, error)

type Averager

type Averager interface {
	Observe(float64)
}

func NewAverager

func NewAverager(name, desc string, registry metric.Registry) (Averager, error)

func NewAveragerWithErrs

func NewAveragerWithErrs(name, desc string, registry metric.Registry, errs *wrappers.Errs) Averager

Jump to

Keyboard shortcuts

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