35 releases

0.34.0 Jun 5, 2024
0.32.3 Apr 16, 2024
0.32.2 Jan 30, 2024
0.32.1 Dec 18, 2023
0.19.0 Jun 18, 2020

#121 in Hardware support

Download history 116430/week @ 2024-07-25 121313/week @ 2024-08-01 152208/week @ 2024-08-08 138413/week @ 2024-08-15 202538/week @ 2024-08-22 168109/week @ 2024-08-29 179812/week @ 2024-09-05 159208/week @ 2024-09-12 177928/week @ 2024-09-19 240028/week @ 2024-09-26 159074/week @ 2024-10-03 200313/week @ 2024-10-10 215168/week @ 2024-10-17 178955/week @ 2024-10-24 192730/week @ 2024-10-31 162061/week @ 2024-11-07

812,828 downloads per month
Used in 33 crates (via sentry)

Apache-2.0

230KB
4.5K 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

~4–31MB
~445K SLoC