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,
resource: &'a Resource,
aggregator: &'a Arc<dyn Aggregator + Send + Sync>,
) -> Self
pub fn new( descriptor: &'a Descriptor, attributes: &'a AttributeSet, resource: &'a Resource, aggregator: &'a Arc<dyn Aggregator + Send + Sync>, ) -> Self
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 + Send + Sync>
pub fn aggregator(&self) -> &Arc<dyn Aggregator + Send + Sync>
The checkpointed aggregator for this metric.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Accumulation<'a>
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§
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.