logo
pub enum Selector {
    Sketch(DdSketchConfig),
    Inexpensive,
    Exact,
    Histogram(Vec<f64>),
}
This is supported on crate feature 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

This allocates a variable number of aggregators of a kind suitable for the requested export. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.