Trait prometheus::core::MetricVecBuilder

source ·
pub trait MetricVecBuilder:
    Send
    + Sync
    + Clone {
    type M: Metric;
    type P: Describer + Sync + Send + Clone;

    // Required method
    fn build(&self, _: &Self::P, _: &[&str]) -> Result<Self::M>;
}
Expand description

An interface for building a metric vector.

Required Associated Types§

source

type M: Metric

The associated Metric collected.

source

type P: Describer + Sync + Send + Clone

The associated describer.

Required Methods§

source

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

build builds a Metric with option and corresponding label names.

Object Safety§

This trait is not object safe.

Implementors§