Trait opentelemetry_sdk::metrics::reader::AggregationSelector
source · pub trait AggregationSelector: Send + Sync {
// Required method
fn aggregation(&self, kind: InstrumentKind) -> Aggregation;
}
Available on crate feature
metrics
only.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.
Implementors§
impl AggregationSelector for InMemoryMetricsExporter
Available on crate feature
testing
or test
only.impl AggregationSelector for TestMetricReader
Available on crate feature
testing
or test
only.