pub struct Record<'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 the Processor
for the Exporter
. This includes the
effective start and end time for the aggregation.
Implementations
sourceimpl Record<'_>
impl Record<'_>
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) -> Option<&Arc<dyn Aggregator + Sync + Send + 'static>>
pub fn aggregator(&self) -> Option<&Arc<dyn Aggregator + Sync + Send + 'static>>
The aggregator for this metric
sourcepub fn start_time(&self) -> &SystemTime
pub fn start_time(&self) -> &SystemTime
The start time of the interval covered by this aggregation.
sourcepub fn end_time(&self) -> &SystemTime
pub fn end_time(&self) -> &SystemTime
The end time of the interval covered by this aggregation.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> !UnwindSafe for Record<'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