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

#133 in Hardware support

Download history 193076/week @ 2024-10-22 212832/week @ 2024-10-29 138580/week @ 2024-11-05 356034/week @ 2024-11-12 281473/week @ 2024-11-19 149435/week @ 2024-11-26 287375/week @ 2024-12-03 287350/week @ 2024-12-10 172248/week @ 2024-12-17 45415/week @ 2024-12-24 86252/week @ 2024-12-31 283009/week @ 2025-01-07 235046/week @ 2025-01-14 176985/week @ 2025-01-21 151518/week @ 2025-01-28 154729/week @ 2025-02-04

762,926 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–30MB
~418K SLoC