metrics

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistry

func GetRegistry() metrics.Registry

GetRegistry returns the current metrics registry

func Increment

func Increment(name string, value int64)

Increment adds the specified value to the provided metric's (name) current value

func ResetRegistry

func ResetRegistry()

ResetRegistry creates a new registry, discarding all old metrics

func SetRegistry

func SetRegistry(r metrics.Registry)

SetRegistry updates the default registry to the provided one

func Update

func Update(name string, value int64)

Update sets the provided metric (name) to the specified value

Types

This section is empty.

Jump to

Keyboard shortcuts

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