pub struct BatchObserverResult { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Passed to a batch observer callback to capture observations for multiple asynchronous instruments.
Implementations§
Source§impl BatchObserverResult
impl BatchObserverResult
Sourcepub fn observe(&self, attributes: &[KeyValue], observations: &[Observation])
pub fn observe(&self, attributes: &[KeyValue], observations: &[Observation])
Captures multiple observations from the associated batch instrument callback, with the given attributes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchObserverResult
impl RefUnwindSafe for BatchObserverResult
impl Send for BatchObserverResult
impl Sync for BatchObserverResult
impl Unpin for BatchObserverResult
impl UnwindSafe for BatchObserverResult
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.