Struct prometheus_utils::DeferredAddWithLabels [−][src]
pub struct DeferredAddWithLabels<'a, L: Labels> { /* fields omitted */ }
Expand description
A guard that will automatically increment a labeled metric when dropped.
Created by calling IntCounterWithLabels::deferred_inc
.
Implementations
Update the labels to use when incrementing the metric.
Eagerly perform the increment, consuming the guard.
Trait Implementations
When dropped, a DeferredAddWithLabels
guard will increment its counter.