package
Version:
v0.0.0-...-b004422
Opens a new window with list of versions in this module.
Published: Mar 27, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
Package registry holds a map of all metrics registered by the process.
This map is global and it is populated during init() time, when individual
metrics are defined.
Add adds a metric to the metric registry.
Panics if
- the metric name is invalid.
- a metric with the same name and target type is defined already.
- a field name is invalid.
Iter calls a callback for each registered metric.
Metrics are visited in no particular order. The callback must not modify
the registry.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.