Skip to main content

Module counter

Module counter 

Source
Expand description

lock-free metric counters for runtime hot paths

counters use relaxed atomics because snapshots are observational telemetry and never synchronize runtime state padded counters isolate high-frequency worker labels onto cache lines

Structsยง

Counter ๐Ÿ”’
CounterFamily ๐Ÿ”’
Histogram ๐Ÿ”’
HistogramFamily ๐Ÿ”’
PaddedCounter ๐Ÿ”’
PaddedCounterFamily ๐Ÿ”’
UpDownCounter ๐Ÿ”’
UpDownCounterFamily ๐Ÿ”’

Traitsยง

ExportedMetricLabel ๐Ÿ”’
HistogramBucketLabel ๐Ÿ”’
MetricBucketLabel ๐Ÿ”’
MetricLabel ๐Ÿ”’