/sentry-rust

Official Sentry SDK for Rust

Primary LanguageRustApache License 2.0Apache-2.0

Sentry

Sentry SDK for Rust

Build Status codecov

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-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-tracing crates.io docs.rs

    An integration for the tracing 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 20.6 and later.

The Minimum Supported Rust Version is currently at 1.60.0. The Sentry crates will support a 6 month old Rust version at time of release, and the MSRV will be increased in accordance with its dependencies.

Resources