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
sourceimpl<'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.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Accumulation<'a>
impl<'a> Send for Accumulation<'a>
impl<'a> Sync for Accumulation<'a>
impl<'a> Unpin for Accumulation<'a>
impl<'a> !UnwindSafe for Accumulation<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more