Struct opentelemetry::sdk::metrics::reader::DefaultAggregationSelector
source · pub struct DefaultAggregationSelector { /* private fields */ }
Available on crate feature
metrics
only.Expand description
The default aggregation and parameters for an instrument of InstrumentKind.
This AggregationSelector uses the following selection mapping per the spec:
- Counter ⇨ Sum
- Observable Counter ⇨ Sum
- UpDownCounter ⇨ Sum
- Observable UpDownCounter ⇨ Sum
- Observable Gauge ⇨ LastValue
- Histogram ⇨ ExplicitBucketHistogram
Implementations§
source§impl DefaultAggregationSelector
impl DefaultAggregationSelector
sourcepub fn new() -> DefaultAggregationSelector
pub fn new() -> DefaultAggregationSelector
Create a new default aggregation selector.
Trait Implementations§
source§impl AggregationSelector for DefaultAggregationSelector
impl AggregationSelector for DefaultAggregationSelector
source§fn 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.
source§impl Clone for DefaultAggregationSelector
impl Clone for DefaultAggregationSelector
source§fn clone(&self) -> DefaultAggregationSelector
fn clone(&self) -> DefaultAggregationSelector
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultAggregationSelector
impl Debug for DefaultAggregationSelector
source§impl Default for DefaultAggregationSelector
impl Default for DefaultAggregationSelector
source§fn default() -> DefaultAggregationSelector
fn default() -> DefaultAggregationSelector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DefaultAggregationSelector
impl Send for DefaultAggregationSelector
impl Sync for DefaultAggregationSelector
impl Unpin for DefaultAggregationSelector
impl UnwindSafe for DefaultAggregationSelector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more