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.