mz_ore::metrics

Type Alias 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.