opentelemetry_sdk::metrics::reader

Trait MetricProducer

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

Produces metrics for a MetricReader from an external source.

Required Methods§

Source

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

Returns aggregated metrics from an external source.

Implementors§