Crate sentry_contexts
source · [−]Expand description
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));
Modules
Contains functions to retrieve various contexts that can be useful to attach to events
Structs
Adds Contexts to Sentry Events.