pub struct Observation { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Observation is used for reporting an asynchronous batch of metric values. Instances of this type should be created by asynchronous instruments (e.g., ValueObserver::observation).
Implementations§
Source§impl Observation
impl Observation
Sourcepub fn instrument(&self) -> &Arc<dyn AsyncInstrumentCore>
pub fn instrument(&self) -> &Arc<dyn AsyncInstrumentCore>
The instrument used to record this observation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Observation
impl !RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl !UnwindSafe for Observation
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.