Trait prometheus::local::HistogramDelegator
source · [−]pub trait HistogramDelegator<T: 'static + MayFlush> {
fn get_root_metric(&self) -> &'static LocalKey<T>;
fn get_local<'a>(&self, root_metric: &'a T) -> &'a LocalHistogram;
}
Expand description
Delegator for auto flush-able local counter
Required methods
fn get_root_metric(&self) -> &'static LocalKey<T>
fn get_root_metric(&self) -> &'static LocalKey<T>
Get the root local metric for delegate
fn get_local<'a>(&self, root_metric: &'a T) -> &'a LocalHistogram
fn get_local<'a>(&self, root_metric: &'a T) -> &'a LocalHistogram
Get the final counter for delegate