pub struct Metadata<'a> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
A container for the common elements for exported metric data that are shared
by the Accumulator
->Processor
and Processor
->Exporter
steps.
Implementations§
source§impl<'a> Metadata<'a>
impl<'a> Metadata<'a>
sourcepub fn new(
descriptor: &'a Descriptor,
attributes: &'a AttributeSet
) -> Metadata<'a>
pub fn new( descriptor: &'a Descriptor, attributes: &'a AttributeSet ) -> Metadata<'a>
Create a new Metadata
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.