Trait opentelemetry_sdk::metrics::data::Aggregation

source ·
pub trait Aggregation: Debug + Any + Send + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_mut(&mut self) -> &mut dyn Any;
}
Expand description

The store of data reported by an Instrument.

It will be one of: Gauge, Sum, or Histogram.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Support downcasting

source

fn as_mut(&mut self) -> &mut dyn Any

Support downcasting during aggregation

Implementors§

source§

impl<T: Debug + Send + Sync + 'static> Aggregation for ExponentialHistogram<T>

source§

impl<T: Debug + Send + Sync + 'static> Aggregation for Gauge<T>

source§

impl<T: Debug + Send + Sync + 'static> Aggregation for Histogram<T>

source§

impl<T: Debug + Send + Sync + 'static> Aggregation for Sum<T>