36 releases

0.35.0 Nov 29, 2024
0.34.0 Jun 5, 2024
0.33.0 May 27, 2024
0.32.2 Jan 30, 2024
0.19.0 Jun 18, 2020

#125 in Hardware support

Download history 163146/week @ 2024-08-19 212349/week @ 2024-08-26 153667/week @ 2024-09-02 182806/week @ 2024-09-09 157290/week @ 2024-09-16 181339/week @ 2024-09-23 228408/week @ 2024-09-30 153505/week @ 2024-10-07 234626/week @ 2024-10-14 188852/week @ 2024-10-21 217736/week @ 2024-10-28 144917/week @ 2024-11-04 315409/week @ 2024-11-11 312420/week @ 2024-11-18 140842/week @ 2024-11-25 281644/week @ 2024-12-02

1,055,593 downloads per month
Used in 33 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–30MB
~449K SLoC