/sentry-rust

Official Sentry SDK for Rust

Primary LanguageRustApache License 2.0Apache-2.0


Sentry SDK for Rust

Build Status

This workspace contains various crates that provide support for logging events and errors / panics to the Sentry error logging service.

  • sentry crates.io docs.rs

    The main sentry crate aimed at application users that want to log events to sentry.

  • sentry-actix crates.io docs.rs

    An integration for the actix-web (3.0+) framework.

  • sentry-anyhow crates.io docs.rs

    An integration for anyhow errors.

  • sentry-backtrace crates.io docs.rs

    A utility crate that creates and processes backtraces.

  • sentry-contexts crates.io docs.rs

    An integration that provides os, device and rust contexts.

  • sentry-core crates.io docs.rs

    The core of sentry, which can be used to instrument code, and to write integrations that generate events or hook into event processing.

  • sentry-debug-images crates.io docs.rs

    An integration that adds a list of loaded libraries to events.

  • sentry-error-chain crates.io docs.rs

    An integration for the error-chain crate. This is deprecated and will be completely removed in the future.

  • sentry-failure crates.io docs.rs

    An integration for the failure crate. This is deprecated and will be completely removed in the future.

  • sentry-log crates.io docs.rs

    An integration for the log and env_logger crate.

  • sentry-panic crates.io docs.rs

    An integration for capturing and logging panics.

  • sentry-slog crates.io docs.rs

    An integration for the slog crate.

  • sentry-types crates.io docs.rs

    Contains types for the Sentry v7 protocol as well as other common types.

Note: Until the 1.0 release, the crates in this repository are considered work in progress and do not follow semver semantics. Between minor releases, we might occasionally introduce breaking changes while we are exploring the best API and adding new features.

Requirements

We currently only verify this crate against a recent version of Sentry hosted on sentry.io but it should work with on-prem Sentry versions 8.20 and later.

Additionally, the lowest Rust version we target is 1.45.0.

Resources