6 releases (3 breaking)

0.22.0 Jan 13, 2021
0.21.0 Nov 12, 2020
0.20.1 Sep 15, 2020
0.19.1 Aug 28, 2020
0.19.0 Jun 18, 2020
Download history 17947/week @ 2021-02-16 16596/week @ 2021-02-23 19064/week @ 2021-03-02 23823/week @ 2021-03-09 26007/week @ 2021-03-16 20910/week @ 2021-03-23 18040/week @ 2021-03-30 20884/week @ 2021-04-06 24390/week @ 2021-04-13 21883/week @ 2021-04-20 16320/week @ 2021-04-27 17623/week @ 2021-05-04 26788/week @ 2021-05-11 23857/week @ 2021-05-18 24093/week @ 2021-05-25 21225/week @ 2021-06-01

88,247 downloads per month
Used in 5 crates (via sentry)

Apache-2.0

115KB
2K SLoC

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, as well as sets a server_name if 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, as well as sets a server_name if 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

~4.5–6MB
~152K SLoC