pub struct Measurement { /* private fields */ }
Available on crate feature
metrics
only.Expand description
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§
Source§impl Measurement
impl Measurement
Sourcepub fn into_number(self) -> Number
pub fn into_number(self) -> Number
Convert this measurement into the underlying number
Sourcepub fn instrument(&self) -> &Arc<dyn SyncInstrumentCore>
pub fn instrument(&self) -> &Arc<dyn SyncInstrumentCore>
The instrument that recorded this measurement
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Measurement
impl !RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl !UnwindSafe for Measurement
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.