Available on crate feature
metrics only.Expand description
Labeled metrics that stay registered while any handle for their labels is alive.
Each DeleteOnDropMetric obtained from a vector removes its
labels when it drops, even while another handle for the same labels, obtained separately, is
still recording. The survivor then records into a series that is no longer exported. This
happens when every timely worker creates a metric but only one keeps using it, and when a
restarted dataflow creates its metrics before the previous incarnation drops its own.
DeregisterOnDropVec counts handles per label set across all calls, so the series is
removed only when the last handle for its labels drops.
Structsยง
- Deregister
OnDrop Metric - A labeled metric that stays registered while any handle for its labels is alive.
- Deregister
OnDrop Vec - A metric vector whose handles share one registration per label set.
- Registration ๐
- Removes a label set from its vector when the last handle for it drops.
Type Aliasesยง
- Deregister
OnDrop Counter - A
GenericCounterthat stays registered while any handle for its labels is alive. - Deregister
OnDrop Gauge - A
GenericGaugethat stays registered while any handle for its labels is alive. - Deregister
OnDrop Histogram - A
Histogramthat stays registered while any handle for its labels is alive. - Registrations ๐
- The live registration of each label set, keyed by label values.