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

#157 in Hardware support

Download history 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 255776/week @ 2025-01-04 262707/week @ 2025-01-11 172742/week @ 2025-01-18 144418/week @ 2025-01-25 178373/week @ 2025-02-01 185790/week @ 2025-02-08 158619/week @ 2025-02-15 193342/week @ 2025-02-22 155758/week @ 2025-03-01

727,552 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
~416K SLoC