pub struct InstrumentedOperation { /* private fields */ }Expand description
Telemetry wrapper for instrumented operations.
Implementations§
Source§impl InstrumentedOperation
impl InstrumentedOperation
Sourcepub fn set_attribute(&mut self, key: &str, value: impl Into<String>)
pub fn set_attribute(&mut self, key: &str, value: impl Into<String>)
Add context to the operation (for compatibility, currently logs with audit feature).
Sourcepub fn record_error(&mut self, error: &dyn Error)
pub fn record_error(&mut self, error: &dyn Error)
Record an error in the operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstrumentedOperation
impl RefUnwindSafe for InstrumentedOperation
impl Send for InstrumentedOperation
impl Sync for InstrumentedOperation
impl Unpin for InstrumentedOperation
impl UnwindSafe for InstrumentedOperation
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