[][src]Trait prometheus::core::MetricVecBuilder

pub trait MetricVecBuilder: Send + Sync + Clone {
    type M: Metric;
    type P: Describer + Sync + Send + Clone;
    fn build(&self, _: &Self::P, _: &[&str]) -> Result<Self::M>;
}

An interface for building a metric vector.

Associated Types

type M: Metric

The associated Metric collected.

type P: Describer + Sync + Send + Clone

The associated describer.

Loading content...

Required methods

fn build(&self, _: &Self::P, _: &[&str]) -> Result<Self::M>

build builds a Metric with option and corresponding label names.

Loading content...

Implementors

Loading content...