Skip to main content

OBSERVATIONS

Static OBSERVATIONS 

Source
static OBSERVATIONS: Mutex<Option<BTreeMap<MetricKey, u64>>>
Expand description

The most recent observations, keyed by MetricKey.

Published as a whole map rather than as independent cells so a reader always sees one self-consistent sample. Reading a set of independent atomics could mix two samples into a combination that never existed, for instance a peak below the current value it bounds.