strut_sentry/lib.rs
1#![doc = include_str!("../README.md")]
2#![deny(missing_docs)]
3#![cfg_attr(test, deny(warnings))]
4
5/// Exposes an application configuration section.
6mod config;
7pub use self::config::SentryConfig;
8
9/// Implements initialization logic for Sentry integration.
10mod integration;
11pub use self::integration::SentryIntegration;
12pub use sentry::ClientInitGuard as SentryGuard;
13
14/// Implements a customized [`SentryLayer`](sentry_tracing::SentryLayer) that
15/// can be integrated into the [`Subscriber`](tracing::Subscriber) for setting
16/// up the [`tracing`](::tracing) crate.
17#[cfg(feature = "tracing")]
18pub mod tracing;
19
20/// Re-exports the `strut_shutdown` function to facilitate stand-alone usage of
21/// this crate.
22///
23/// When using this crate without the `strut` crate itself, await on this
24/// function as a last thing before completing the main application logic.
25pub use strut_core::strut_shutdown;