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