pub struct ObservabilityGuards {
pub log_guard: LogGuard,
pub otlp: OtlpGuard,
}Expand description
Combined guards for all observability components
Fields§
§log_guard: LogGuardGuard for the logging system (keeps async file writer running). Empty (no-op) when OTLP is enabled and subscriber installation was deferred to the in-runtime OTLP activation.
otlp: OtlpGuardGuard for OTLP telemetry forwarding. Holds the live SDK tracer/logger
providers (flush on drop) when forwarding was activated by this call;
empty for the daemon path, where activation happens later via
init_otlp_in_runtime inside the Tokio runtime.
Auto Trait Implementations§
impl !RefUnwindSafe for ObservabilityGuards
impl !UnwindSafe for ObservabilityGuards
impl Freeze for ObservabilityGuards
impl Send for ObservabilityGuards
impl Sync for ObservabilityGuards
impl Unpin for ObservabilityGuards
impl UnsafeUnpin for ObservabilityGuards
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