Struct opentelemetry::metrics::Observation [−][src]
pub struct Observation { /* fields omitted */ }
This is supported on crate feature
metrics
only.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
impl Observation
[src]
impl Observation
[src]pub fn instrument(&self) -> &Arc<dyn AsyncInstrumentCore>
[src]
pub fn instrument(&self) -> &Arc<dyn AsyncInstrumentCore>
[src]The instrument used to record this observation
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl !UnwindSafe for Observation
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>,