Crates.io | ckb-sentry-contexts |
lib.rs | ckb-sentry-contexts |
version | 0.21.0 |
source | src |
created_at | 2020-12-16 05:26:03.225489 |
updated_at | 2020-12-16 05:26:03.225489 |
description | Sentry integration for os, device, and rust contexts. |
homepage | |
repository | https://github.com/nervosnetwork/sentry-rust |
max_upload_size | |
id | 323490 |
size | 11,369 |
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.
let integration = sentry_contexts::ContextIntegration::new().add_os(false);
let _sentry = sentry::init(sentry::ClientOptions::new().add_integration(integration));
License: Apache-2.0