37 releases (17 breaking)

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

#654 in Debugging

Download history 237206/week @ 2024-12-05 296738/week @ 2024-12-12 83249/week @ 2024-12-19 46226/week @ 2024-12-26 176170/week @ 2025-01-02 268215/week @ 2025-01-09 240429/week @ 2025-01-16 139335/week @ 2025-01-23 162687/week @ 2025-01-30 193297/week @ 2025-02-06 157464/week @ 2025-02-13 188739/week @ 2025-02-20 188171/week @ 2025-02-27 175806/week @ 2025-03-06 182547/week @ 2025-03-13 148921/week @ 2025-03-20

727,065 downloads per month
Used in 30 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
~411K SLoC