package
1.0.2
Repository: https://github.com/realcaishen/utils-go.git
Documentation: pkg.go.dev

# Functions

IncrCounter provides a wrapper functionality for emitting a counter metric with global labels (if any).
IncrCounterWithLabels provides a wrapper functionality for emitting a counter metric with global labels (if any) along with the provided labels.
MeasureSince provides a wrapper functionality for emitting a a time measure metric with global labels (if any).
ModuleMeasureSince provides a short hand method for emitting a time measure metric for a module with a given set of keys.
ModuleSetGauge provides a short hand method for emitting a gauge metric for a module with a given set of keys.
New creates a new instance of Metrics.
NewLabel creates a new instance of Label with name and value.
SetGauge provides a wrapper functionality for emitting a gauge metric with global labels (if any).
SetGaugeWithLabels provides a wrapper functionality for emitting a gauge metric with global labels (if any) along with the provided labels.

# Constants

Metrics supported format types.
Metrics supported format types.
Metrics supported format types.
Common metric key constants.
Common metric key constants.
Common metric key constants.
Common metric key constants.
Common metric key constants.
Metrics supported format types.
Metrics supported format types.
Metrics supported format types.

# Structs

Config defines the configuration options for application telemetry.
GatherResponse is the response type of registered metrics.
Metrics defines a wrapper around application telemetry functionality.

# Interfaces

DisplayableSink is an interface that defines a method for displaying metrics.