14 releases (8 breaking)

Uses new Rust 2021

0.27.0 Jun 20, 2022
0.25.0 Mar 2, 2022
0.23.0 Jul 8, 2021
0.22.0 Jan 13, 2021
0.19.0 Jun 18, 2020

#12 in #sentry

Download history 38870/week @ 2022-03-08 36576/week @ 2022-03-15 33799/week @ 2022-03-22 36401/week @ 2022-03-29 44853/week @ 2022-04-05 38762/week @ 2022-04-12 44095/week @ 2022-04-19 38883/week @ 2022-04-26 33860/week @ 2022-05-03 33604/week @ 2022-05-10 33286/week @ 2022-05-17 31295/week @ 2022-05-24 35702/week @ 2022-05-31 40663/week @ 2022-06-07 39533/week @ 2022-06-14 33991/week @ 2022-06-21

153,615 downloads per month
Used in 5 crates (via sentry)

Apache-2.0

150KB
3K SLoC

Sentry

Sentry Rust SDK: sentry-contexts

Adds Contexts to Sentry Events.

This integration is enabled by default in sentry and adds device, os and rust contexts to Events, and also sets a server_name if it is not already defined.

See the Contexts Interface documentation for more info.

Examples

let integration = sentry_contexts::ContextIntegration::new().add_os(false);
let _sentry = sentry::init(sentry::ClientOptions::new().add_integration(integration));

Resources

License: Apache-2.0


lib.rs:

Adds Contexts to Sentry Events.

This integration is enabled by default in sentry and adds device, os and rust contexts to Events, and also sets a server_name if it is not already defined.

See the Contexts Interface documentation for more info.

Examples

let integration = sentry_contexts::ContextIntegration::new().add_os(false);
let _sentry = sentry::init(sentry::ClientOptions::new().add_integration(integration));

Dependencies

~3–4MB
~109K SLoC