#sentry #events #contexts

sentry-contexts

Sentry integration for os, device, and rust contexts

4 releases

new 0.20.1 Sep 15, 2020
0.20.0 Sep 9, 2020
0.19.1 Aug 28, 2020
0.19.0 Jun 18, 2020
Download history 13/week @ 2020-06-12 200/week @ 2020-06-19 482/week @ 2020-06-26 910/week @ 2020-07-03 1090/week @ 2020-07-10 1343/week @ 2020-07-17 1375/week @ 2020-07-24 1447/week @ 2020-07-31 2226/week @ 2020-08-07 2631/week @ 2020-08-14 2855/week @ 2020-08-21 2960/week @ 2020-08-28 2753/week @ 2020-09-04 3832/week @ 2020-09-11

7,376 downloads per month
Used in sentry

Apache-2.0

105KB
2K SLoC

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, as well as sets a server_name if not already defined.

See the Contexts Interface documentation for more info.

Examples

let integration = sentry_contexts::ContextIntegration {
    add_os: false,
    ..Default::default()
};
let _sentry = sentry::init(sentry::ClientOptions::default().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, as well as sets a server_name if not already defined.

See the Contexts Interface documentation for more info.

Examples

let integration = sentry_contexts::ContextIntegration {
    add_os: false,
    ..Default::default()
};
let _sentry = sentry::init(sentry::ClientOptions::default().add_integration(integration));

Dependencies

~4.5–6MB
~146K SLoC