metrics

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C

func C() statsd.Statter

C returns a pointer the singleton instance of statsd.Statter

func NewStatsDClient

func NewStatsDClient(address, prefix string) statsd.Statter

NewStatsDClient returns a pointer to a new statsd.Statter instance

func ReplaceGlobals

func ReplaceGlobals(metrics statsd.Statter) func()

ReplaceGlobals replaces statsd.Statter, and returns a function to restore the original values. It's safe for concurrent use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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