pub struct SentryIntegration;Expand description
A facade for integrating with Sentry.
Implementations§
Source§impl SentryIntegration
impl SentryIntegration
Sourcepub fn init(config: impl AsRef<SentryConfig>) -> SentryGuard
pub fn init(config: impl AsRef<SentryConfig>) -> SentryGuard
Initializes Sentry integration and returns the client guard.
The behavior of the Sentry client is partly configurable from the provided
SentryConfig.
Sourcepub fn schedule_flushing(runtime: &Runtime, sentry_guard: SentryGuard)
pub fn schedule_flushing(runtime: &Runtime, sentry_guard: SentryGuard)
Schedules flushing of unsend Sentry events (if any) after the application context is terminated. The flushing is triggered by dropping the given Sentry guard.
This scheduling involves spawning an asynchronous task. To avoid accidentally calling this function outside of Tokio context, this function explicitly takes a runtime as an argument.
Auto Trait Implementations§
impl Freeze for SentryIntegration
impl RefUnwindSafe for SentryIntegration
impl Send for SentryIntegration
impl Sync for SentryIntegration
impl Unpin for SentryIntegration
impl UnwindSafe for SentryIntegration
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