sentry-contexts

Crates.iosentry-contexts
lib.rssentry-contexts
version0.46.1
created_at2020-06-18 13:47:35.550255+00
updated_at2026-01-07 08:37:48.52805+00
descriptionSentry integration for os, device, and rust contexts.
homepagehttps://sentry.io/welcome/
repositoryhttps://github.com/getsentry/sentry-rust
max_upload_size
id255334
size35,526
Sentry Bot (getsentry-bot)

documentation

README

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: MIT

  • Discord server for project discussions.
  • Follow @sentry on X for updates.
Commit count: 1194

cargo fmt