14 releases (8 breaking)

Uses new Rust 2021

0.27.0 Jun 20, 2022
0.25.0 Mar 2, 2022
0.23.0 Jul 8, 2021
0.22.0 Jan 13, 2021
0.19.0 Jun 18, 2020

#260 in Debugging

Download history 42688/week @ 2022-06-04 41761/week @ 2022-06-11 41701/week @ 2022-06-18 47398/week @ 2022-06-25 46110/week @ 2022-07-02 48840/week @ 2022-07-09 51377/week @ 2022-07-16 48468/week @ 2022-07-23 51676/week @ 2022-07-30 46874/week @ 2022-08-06 50920/week @ 2022-08-13 52191/week @ 2022-08-20 54797/week @ 2022-08-27 47567/week @ 2022-09-03 53834/week @ 2022-09-10 49505/week @ 2022-09-17

215,471 downloads per month
Used in 47 crates (16 directly)

Apache-2.0

275KB
5.5K SLoC

Sentry

Sentry Rust SDK: sentry-core

This crate provides the core of the Sentry SDK, which can be used to log events and errors.

sentry-core is meant for integration authors and third-party library authors that want to instrument their code for sentry.

Regular users who wish to integrate sentry into their applications should instead use the sentry crate, which comes with a default transport and a large set of integrations for various third-party libraries.

Core Concepts

This crate follows the Unified API guidelines and is centered around the concepts of Client, Hub and Scope, as well as the extension points via the Integration, Transport and TransportFactory traits.

Minimal API

By default, this crate comes with a so-called "minimal" mode. This mode will provide all the APIs needed to instrument code with sentry, and to write sentry integrations, but it will blackhole a lot of operations.

In minimal mode some types are restricted in functionality. For instance the Client is not available and the Hub does not retain all API functionality.

Features

  • feature = "client": Activates the Client type and certain Hub functionality.
  • feature = "test": Activates the test module, which can be used to write integration tests. It comes with a test transport which can capture all sent events for inspection.
  • feature = "debug-logs": Uses the log crate for debug output, instead of printing to stderr. This feature is deprecated and will be replaced by a dedicated log callback in the future.

Resources

License: Apache-2.0

Dependencies

~2.8–4MB
~106K SLoC