5 unstable releases

0.21.0 Nov 12, 2020
0.20.1 Sep 15, 2020
0.20.0 Sep 9, 2020
0.19.1 Aug 28, 2020
0.19.0 Jun 18, 2020
Download history 2030/week @ 2020-08-06 2588/week @ 2020-08-13 2685/week @ 2020-08-20 3114/week @ 2020-08-27 2555/week @ 2020-09-03 3767/week @ 2020-09-10 3766/week @ 2020-09-17 5194/week @ 2020-09-24 5392/week @ 2020-10-01 5932/week @ 2020-10-08 6768/week @ 2020-10-15 5841/week @ 2020-10-22 6469/week @ 2020-10-29 6835/week @ 2020-11-05 9589/week @ 2020-11-12 12580/week @ 2020-11-19

20,458 downloads per month
Used in 4 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
~153K SLoC