[][src]Trait instrumented::prometheus::core::Metric

pub trait Metric: Send + Sync + Clone {
    fn metric(&self) -> Metric;
}

An interface models a single sample value with its meta data being exported to Prometheus.

Required methods

fn metric(&self) -> Metric

Return the protocol Metric.

Loading content...

Implementors

impl Metric for Histogram[src]

impl<P> Metric for GenericCounter<P> where
    P: Atomic
[src]

impl<P> Metric for GenericGauge<P> where
    P: Atomic
[src]

Loading content...