Skip to main content

Module metrics

Module metrics 

Source
Expand description

Contains definitions of metric types.

Structsยง

AtomicF64 ๐Ÿ”’
Stores an f64 in an AtomicU64 via bit reinterpretation.
GlobalMetricState ๐Ÿ”’
MetricError
Error type for metric operations.
MultiCounter
Represents a vector of named monotonic unsigned integer counters.
MultiGauge
Represents a vector of gauges with floating point values.
MultiHistogram
Represents a vector of histograms with floating point values.
PrefixProvider ๐Ÿ”’
SimpleCounter
Represents a simple monotonic unsigned integer counter.
SimpleGauge
Represents a simple gauge with floating point values.
SimpleHistogram
Represents a histogram with floating point values.
SimpleTimer
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ยง

MetricResult
Result type for metric operations.