Trait opentelemetry_sdk::metrics::reader::AggregationSelector
source · pub trait AggregationSelector: Send + Sync {
// Required method
fn aggregation(&self, kind: InstrumentKind) -> Aggregation;
}
Expand description
An interface for selecting the aggregation and the parameters for an InstrumentKind.
Required Methods§
sourcefn aggregation(&self, kind: InstrumentKind) -> Aggregation
fn aggregation(&self, kind: InstrumentKind) -> Aggregation
Selects the aggregation and the parameters to use for that aggregation based on the InstrumentKind.