Type Alias mz_ore::metrics::DeleteOnDropCounter

source ·
pub type DeleteOnDropCounter<'a, P, L> = DeleteOnDropMetric<'a, GenericCounterVec<P>, L>;
Available on crate feature metrics only.
Expand description

A GenericCounter wrapper that deletes its labels from the vec when it is dropped.

Aliased Type§

struct DeleteOnDropCounter<'a, P, L> {
    inner: <MetricVec<CounterVecBuilder<P>> as MetricVec_>::M,
    labels: L,
    vec: MetricVec<CounterVecBuilder<P>>,
    _phantom: &'a PhantomData<()>,
}

Fields§

§inner: <MetricVec<CounterVecBuilder<P>> as MetricVec_>::M§labels: L§vec: MetricVec<CounterVecBuilder<P>>§_phantom: &'a PhantomData<()>

Trait Implementations§

source§

impl<'a, P, L> Borrow<GenericCounter<P>> for DeleteOnDropCounter<'a, P, L>
where P: Atomic, L: PromLabelsExt<'a>,

source§

fn borrow(&self) -> &GenericCounter<P>

Immutably borrows from an owned value. Read more
source§

impl<'a, P, L> InstrumentedChannelMetric for DeleteOnDropCounter<'a, P, L>
where P: Atomic, L: PromLabelsExt<'a>,

Available on crate feature async only.
source§

fn bump(&self)

Bump the metric, increasing the count of operators (send or receives) that occurred.