30 releases

new 0.32.0 Nov 28, 2023
0.31.7 Sep 14, 2023
0.31.5 Jun 16, 2023
0.30.0 Feb 24, 2023
0.19.0 Jun 18, 2020

#56 in Hardware support

Download history 89069/week @ 2023-08-14 88008/week @ 2023-08-21 84515/week @ 2023-08-28 73627/week @ 2023-09-04 81576/week @ 2023-09-11 94078/week @ 2023-09-18 99236/week @ 2023-09-25 110876/week @ 2023-10-02 107456/week @ 2023-10-09 147324/week @ 2023-10-16 93635/week @ 2023-10-23 153784/week @ 2023-10-30 112202/week @ 2023-11-06 145215/week @ 2023-11-13 104246/week @ 2023-11-20 157792/week @ 2023-11-27

521,720 downloads per month
Used in 8 crates (via sentry)

Apache-2.0

165KB
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.5–5MB
~122K SLoC