37 releases (17 breaking)

new 0.36.0 Jan 7, 2025
0.35.0 Nov 29, 2024
0.34.0 Jun 5, 2024
0.32.2 Jan 30, 2024
0.19.0 Jun 18, 2020

#130 in Hardware support

Download history 176861/week @ 2024-09-21 233059/week @ 2024-09-28 155053/week @ 2024-10-05 229022/week @ 2024-10-12 190127/week @ 2024-10-19 214739/week @ 2024-10-26 148116/week @ 2024-11-02 286772/week @ 2024-11-09 334005/week @ 2024-11-16 149287/week @ 2024-11-23 263872/week @ 2024-11-30 279333/week @ 2024-12-07 231100/week @ 2024-12-14 46361/week @ 2024-12-21 73614/week @ 2024-12-28 201930/week @ 2025-01-04

619,664 downloads per month
Used in 32 crates (via sentry)

Apache-2.0

240KB
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–29MB
~416K SLoC