18 releases (10 breaking)

0.29.2 Jan 25, 2023
0.29.1 Dec 1, 2022
0.29.0 Nov 17, 2022
0.27.0 Jun 20, 2022
0.19.0 Jun 18, 2020

#29 in Hardware support

Download history 58447/week @ 2022-10-15 56702/week @ 2022-10-22 52947/week @ 2022-10-29 55216/week @ 2022-11-05 54891/week @ 2022-11-12 43814/week @ 2022-11-19 54152/week @ 2022-11-26 56814/week @ 2022-12-03 50950/week @ 2022-12-10 40387/week @ 2022-12-17 19473/week @ 2022-12-24 41446/week @ 2022-12-31 57033/week @ 2023-01-07 56296/week @ 2023-01-14 59533/week @ 2023-01-21 71356/week @ 2023-01-28

255,048 downloads per month
Used in 6 crates (via sentry)

Apache-2.0

175KB
3.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

~3–4MB
~110K SLoC