Struct opentelemetry::sdk::export::metrics::Accumulation
source · pub struct Accumulation<'a> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
A container for the exported data for a single metric instrument and attribute
set, as prepared by an Accumulator
for the Processor
.
Implementations§
source§impl<'a> Accumulation<'a>
impl<'a> Accumulation<'a>
sourcepub fn new(
descriptor: &'a Descriptor,
attributes: &'a AttributeSet,
aggregator: &'a Arc<dyn Aggregator + Sync + Send + 'static>
) -> Accumulation<'a>
pub fn new( descriptor: &'a Descriptor, attributes: &'a AttributeSet, aggregator: &'a Arc<dyn Aggregator + Sync + Send + 'static> ) -> Accumulation<'a>
Create a new Record
instance.
sourcepub fn descriptor(&self) -> &Descriptor
pub fn descriptor(&self) -> &Descriptor
A description of the metric instrument being exported.
sourcepub fn attributes(&self) -> &AttributeSet
pub fn attributes(&self) -> &AttributeSet
The attributes associated with the instrument and the aggregated data.
sourcepub fn aggregator(&self) -> &Arc<dyn Aggregator + Sync + Send + 'static>
pub fn aggregator(&self) -> &Arc<dyn Aggregator + Sync + Send + 'static>
The checkpointed aggregator for this metric.