referrerpolicy=no-referrer-when-downgrade

Trait relay_utils::metrics::Collector

pub trait Collector: Sync + Send {
    // Required methods
    fn desc(&self) -> Vec<&Desc>;
    fn collect(&self) -> Vec<MetricFamily>;
}
Expand description

An interface for collecting metrics.

Required Methods§

fn desc(&self) -> Vec<&Desc>

Return descriptors for metrics.

fn collect(&self) -> Vec<MetricFamily>

Collect metrics.

Implementations on Foreign Types§

§

impl<T, S> Collector for SourcedMetric<T, S>
where T: SourcedType, S: MetricSource,

§

fn desc(&self) -> Vec<&Desc>

§

fn collect(&self) -> Vec<MetricFamily>

Implementors§

§

impl Collector for Histogram

§

impl<P> Collector for GenericCounter<P>
where P: Atomic,

§

impl<P> Collector for GenericGauge<P>
where P: Atomic,

§

impl<T> Collector for MetricVec<T>
where T: MetricVecBuilder,