69 releases

0.34.0 Jun 5, 2024
0.32.3 Apr 16, 2024
0.32.2 Jan 30, 2024
0.32.1 Dec 18, 2023
0.1.1 Mar 25, 2018

#101 in Debugging

Download history 121525/week @ 2024-07-01 145366/week @ 2024-07-08 99852/week @ 2024-07-15 133524/week @ 2024-07-22 132065/week @ 2024-07-29 130506/week @ 2024-08-05 160493/week @ 2024-08-12 171564/week @ 2024-08-19 221852/week @ 2024-08-26 162211/week @ 2024-09-02 190537/week @ 2024-09-09 164326/week @ 2024-09-16 189821/week @ 2024-09-23 245678/week @ 2024-09-30 165564/week @ 2024-10-07 246962/week @ 2024-10-14

852,357 downloads per month
Used in 182 crates (3 directly)

Apache-2.0

160KB
3.5K SLoC

Sentry

Sentry Rust SDK: sentry-types

This crate provides common types for working with the Sentry protocol or the Sentry server. It's used by the Sentry Relay infrastructure as well as the rust Sentry client.

Most of the types in this crate are serializable in one form or another. The types in the protocol module are generally really only serializable to JSON as other formats are not supported by Sentry at this date.

Contents

The crate provides a bunch of common types for working with Sentry as such (DSN, ProjectIDs, authentication headers) as well as types for the Sentry event protocol.

Right now only v7 of the protocol is implemented but it's versioned so later versions might be added later.

API Concepts

Most types are directly serializable or deserializable and try to implement the Default type. This means that objects can be created conviently and missing attributes can be filled in:

use sentry_types::protocol::v7;

let event = v7::Event {
    message: Some("Hello World!".to_string()),
    culprit: Some("foo in bar".to_string()),
    level: v7::Level::Info,
    ..Default::default()
};

Resources

License: Apache-2.0

Dependencies

~2.8–4MB
~94K SLoC