Expand description
Contains definitions of metric types.
Structsยง
- Atomic
F64 ๐ - Stores an
f64in anAtomicU64via bit reinterpretation. - Global
Metric ๐State - Metric
Error - Error type for metric operations.
- Multi
Counter - Represents a vector of named monotonic unsigned integer counters.
- Multi
Gauge - Represents a vector of gauges with floating point values.
- Multi
Histogram - Represents a vector of histograms with floating point values.
- Prefix
Provider ๐ - Simple
Counter - Represents a simple monotonic unsigned integer counter.
- Simple
Gauge - Represents a simple gauge with floating point values.
- Simple
Histogram - Represents a histogram with floating point values.
- Simple
Timer - Represents a timer handle.
Staticsยง
- GLOBAL_
STATE ๐
Functionsยง
- gather_
all_ metrics - Gathers all metrics in Prometheus text exposition format.
- global_
state ๐ - init_
with_ provider - Initializes the global metric state with the given exporter and provider.
- labels_
to_ ๐attributes - meter_
for_ ๐metric - register_
prefix_ provider - Registers a meter provider for metric names with the given
prefix.
Type Aliasesยง
- Metric
Result - Result type for metric operations.