Registry / observability / sentry

sentry

JSON →
library0.47.0rscratesunverified

Sentry (sentry.io) client for Rust.

# Cargo.toml [dependencies] sentry = "0.47.0"
INSTALL
IMPORT
SIG · SENTRY
S
sentry
observabilityrustv0.47.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use sentry::Client;

Initialize Sentry client and capture a message.

use sentry::Client; fn main() { let _client = sentry::init("https://examplePublicKey@o0.ingest.sentry.io/0"); sentry::capture_message("Hello, world!", sentry::Level::Info); }
Debug
Known issues
gotchaSentry requires a DSN to be set, either via environment variable SENTRY_DSN or explicitly.
fix
Set SENTRY_DSN environment variable or pass DSN to sentry::init.
affects: >=0.20.0
Upgrade
Version history
0.47.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
16
OpenAI (training)
2
Resources
sentry — cargo add sentry · libregistry