PrometheusHistogram

Type Alias PrometheusHistogram 

Source
pub type PrometheusHistogram = Either<Histogram, HistogramVec>;
Expand description

Aliased Type§

pub enum PrometheusHistogram {
    Single(Histogram),
    Vec(MetricVec<HistogramVecBuilder>),
}

Variants§

Trait Implementations§

Source§

impl TryFrom<&Key> for PrometheusHistogram

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(key: &Key) -> Result<Self, Self::Error>

Performs the conversion.