Struct opentelemetry::metrics::Measurement [−][src]
pub struct Measurement { /* fields omitted */ }
This is supported on crate feature
metrics
only.Measurement is used for reporting a synchronous batch of metric values.
Instances of this type should be created by synchronous instruments (e.g.,
Counter::measurement
).
Implementations
impl Measurement
[src]
impl Measurement
[src]pub fn into_number(self) -> Number
[src]
pub fn into_number(self) -> Number
[src]Convert this measurement into the underlying number
pub fn instrument(&self) -> &Arc<dyn SyncInstrumentCore>
[src]
pub fn instrument(&self) -> &Arc<dyn SyncInstrumentCore>
[src]The instrument that recorded this measurement
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl !UnwindSafe for Measurement
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,