pub struct TelemetryRuntime { /* private fields */ }Implementations§
Source§impl TelemetryRuntime
impl TelemetryRuntime
pub fn new(config: &TelemetryConfig) -> Result<Self, TelemetryInitError>
pub fn observer_factory(&self) -> ObserverFactory
Sourcepub fn shutdown_or_log(&self)
pub fn shutdown_or_log(&self)
Flushes and shuts down, logging any failure. For callers whose only recovery is logging.
Sourcepub fn shutdown(&self) -> Result<(), TelemetryShutdownError>
pub fn shutdown(&self) -> Result<(), TelemetryShutdownError>
Flushes and shuts down every signal. Both providers are always attempted; providers for disabled signals have no exporters.
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryRuntime
impl !UnwindSafe for TelemetryRuntime
impl Freeze for TelemetryRuntime
impl Send for TelemetryRuntime
impl Sync for TelemetryRuntime
impl Unpin for TelemetryRuntime
impl UnsafeUnpin for TelemetryRuntime
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