Skip to main content

send_with_extra/
send-with-extra.rs

1#![expect(missing_docs, reason = "predates lint enforcement")]
2
3fn main() {
4    let _sentry = sentry::init(
5        sentry::ClientOptions::new()
6            .maybe_release(sentry::release_name!())
7            .debug(true),
8    );
9
10    sentry::with_scope(
11        |scope| {
12            scope.set_level(Some(sentry::Level::Warning));
13            scope.set_fingerprint(Some(["a-message"].as_ref()));
14            scope.set_tag("foo", "bar");
15        },
16        || {
17            panic!("Shit's on fire yo. 🔥 🚒");
18        },
19    );
20}