pub struct TelemetryGuard { /* private fields */ }Expand description
Holds the OTel providers so they can be flushed on shutdown.
Keep it alive for the whole process lifetime and call
TelemetryGuard::shutdown before exit. When telemetry is disabled all
fields are None and shutdown is a no-op.
Implementations§
Auto Trait Implementations§
impl Freeze for TelemetryGuard
impl !RefUnwindSafe for TelemetryGuard
impl Send for TelemetryGuard
impl Sync for TelemetryGuard
impl Unpin for TelemetryGuard
impl UnsafeUnpin for TelemetryGuard
impl !UnwindSafe for TelemetryGuard
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