pub enum Selector {
Sketch(DdSketchConfig),
Inexpensive,
Exact,
Histogram(Vec<f64>),
}
metrics
only.Expand description
Aggregation selection strategies.
Variants
Sketch(DdSketchConfig)
A simple aggregation selector that uses counter, ddsketch, and ddsketch aggregators for the three kinds of metric. This selector uses more cpu and memory than the NewWithInexpensiveDistribution because it uses one DDSketch per distinct instrument and attribute set.
Inexpensive
A simple aggregation selector that uses last_value, sum, and minmaxsumcount aggregators for metrics. This selector is faster and uses less memory than the others because minmaxsumcount does not aggregate quantile information.
Exact
A simple aggregation selector that uses sum and array aggregators for metrics. This selector is able to compute exact quantiles.
Histogram(Vec<f64>)
A simple aggregation selector that uses sum, and histogram aggregators
for metrics. This selector uses more memory than Inexpensive
because
it uses a counter per bucket.
Trait Implementations
fn aggregator_for(
&self,
descriptor: &Descriptor
) -> Option<Arc<dyn Aggregator + Send + Sync>>
fn aggregator_for(
&self,
descriptor: &Descriptor
) -> Option<Arc<dyn Aggregator + Send + Sync>>
This allocates a variable number of aggregators of a kind suitable for the requested export. Read more