Skip to main content

send_with_extra/
send-with-extra.rs

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