pub struct DefaultAggregationSelector { /* private fields */ }
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
- Gauge ⇨ LastValue
- Observable Gauge ⇨ LastValue
- Histogram ⇨ ExplicitBucketHistogram
Implementations§
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 Freeze for DefaultAggregationSelector
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)