| Crates.io | sentry-contexts |
| lib.rs | sentry-contexts |
| version | 0.43.0 |
| created_at | 2020-06-18 13:47:35.550255+00 |
| updated_at | 2025-09-24 09:25:51.596632+00 |
| description | Sentry integration for os, device, and rust contexts. |
| homepage | https://sentry.io/welcome/ |
| repository | https://github.com/getsentry/sentry-rust |
| max_upload_size | |
| id | 255334 |
| size | 35,543 |
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.
let integration = sentry_contexts::ContextIntegration::new().add_os(false);
let _sentry = sentry::init(sentry::ClientOptions::new().add_integration(integration));
License: MIT