Trait mz_ore::metrics::GaugeVecExt

source ·
pub trait GaugeVecExt {
    type GaugeType: Atomic;

    // Required method
    fn get_delete_on_drop_gauge<'a, L: PromLabelsExt<'a>>(
        &self,
        labels: L
    ) -> DeleteOnDropGauge<'a, Self::GaugeType, L>;
}
Available on crate feature metrics only.
Expand description

Extension trait for all metrics vectors.

Required Associated Types§

source

type GaugeType: Atomic

The type of value that the gauge should count.

Required Methods§

source

fn get_delete_on_drop_gauge<'a, L: PromLabelsExt<'a>>( &self, labels: L ) -> DeleteOnDropGauge<'a, Self::GaugeType, L>

Returns a gauge that deletes its labels from this metrics vector when dropped. See DeleteOnDropGauge for a detailed description.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<P: Atomic> GaugeVecExt for GenericGaugeVec<P>

§

type GaugeType = P

source§

fn get_delete_on_drop_gauge<'a, L: PromLabelsExt<'a>>( &self, labels: L ) -> DeleteOnDropGauge<'a, Self::GaugeType, L>

Implementors§