Trait opentelemetry::sdk::metrics::reader::MetricProducer
source · 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§
sourcefn produce(&self) -> Result<ScopeMetrics, MetricsError>
fn produce(&self) -> Result<ScopeMetrics, MetricsError>
Returns aggregated metrics from an external source.