metrics

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	//Counter records a value at a point in time.
	Counter(name string, tags Tags, value int64)

	// Distribution records a value at a point in time.
	Distribution(name string, tags Tags, value float64)

	// Gauge records a value at a point in time.
	Gauge(name string, tags Tags, value int64)

	// Timing records the duration of an event.
	Timing(name string, tags Tags, duration time.Duration)

	// WithTags returns a new client with the given tags applied to all metrics.
	WithTags(tags Tags) Client
}

type Tags

type Tags map[string]string

Jump to

Keyboard shortcuts

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