pub trait MetricProducer: Debug + Send + Sync {
    // Required method
    fn produce(&self) -> Result<ScopeMetrics, MetricsError>;
}
Expand description

Produces metrics for a MetricReader from an external source.

Required Methods§

source

fn produce(&self) -> Result<ScopeMetrics, MetricsError>

Returns aggregated metrics from an external source.

Implementors§