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§
source§impl 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.