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

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

An interface for building a metric vector.

Associated Types

type M: Metric

The associated Metric collected.

type P: Describer + Send + Sync + Clone

The associated describer.

Loading content...

Required methods

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

build builds a Metric with option and corresponding label names.

Loading content...

Implementors

Loading content...