We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6c028d commit 0bb21baCopy full SHA for 0bb21ba
src/sentry.rs
@@ -1,6 +1,14 @@
1
use sentry::{ClientInitGuard, ClientOptions, IntoDsn};
2
use std::borrow::Cow;
3
4
+/// Initializes the Sentry SDK from the environment variables.
5
+///
6
+/// If `SENTRY_DSN_API` is not set then Sentry will not be initialized,
7
+/// otherwise it is required to be a valid DSN string. `SENTRY_ENV_API` must
8
+/// be set if a DSN is provided.
9
10
+/// `HEROKU_SLUG_COMMIT`, if present, will be used as the `release` property
11
+/// on all events.
12
#[must_use]
13
pub fn init() -> Option<ClientInitGuard> {
14
dotenv::var("SENTRY_DSN_API")
0 commit comments