Trait ore::metrics::delete_on_drop::HistogramVecExt[][src]

pub trait HistogramVecExt {
    fn get_delete_on_drop_histogram<'a, L: PromLabelsExt<'a>>(
        &self,
        labels: L
    ) -> DeleteOnDropHistogram<'a, L>; }
This is supported on crate feature metrics only.
Expand description

Extension trait for all gauge metrics vectors.

It adds a method to create a concrete metric from the vector that gets removed from the vector when the concrete metric is dropped.

Required methods

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

Implementors