pub struct ShutdownHandler { /* private fields */ }Expand description
A handler to shutdown the Logfire configuration.
Calling .shutdown() will flush the logfire exporters and make further
logfire calls into no-ops.
Implementations§
Source§impl ShutdownHandler
impl ShutdownHandler
Sourcepub fn shutdown(&self) -> Result<(), ConfigureError>
pub fn shutdown(&self) -> Result<(), ConfigureError>
Shutdown the tracer provider.
This will flush all spans and metrics to the exporter.
§Errors
See ConfigureError for possible errors.
Trait Implementations§
Source§impl Clone for ShutdownHandler
impl Clone for ShutdownHandler
Source§fn clone(&self) -> ShutdownHandler
fn clone(&self) -> ShutdownHandler
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShutdownHandler
impl !RefUnwindSafe for ShutdownHandler
impl Send for ShutdownHandler
impl Sync for ShutdownHandler
impl Unpin for ShutdownHandler
impl !UnwindSafe for ShutdownHandler
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