Trait Metric
prometheus::core
pub trait Metric: Sync + Send + Clone { fn metric(&self) -> Metric; }
An interface models a single sample value with its meta data being exported to Prometheus.
fn metric(&self) -> Metric
Return the protocol Metric.
impl Metric for Histogram
impl<P: Atomic> Metric for GenericCounter<P>
impl<P: Atomic> Metric for GenericGauge<P>