Registry / observability / sentry-core

sentry-core

JSON →
library0.48.2rscratesunverified

Core Sentry library used for instrumentation and integration development.

# Cargo.toml [dependencies] sentry-core = "0.48.2"
INSTALL
IMPORT
SIG · SENTRY-CORE
S
sentry-core
observabilityrustv0.48.2
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.

Hub
use sentry_core::Hub;

Initialize Sentry and capture an event.

use sentry_core::Hub; fn main() { let _guard = sentry::init("https://examplePublicKey@o0.ingest.sentry.io/0"); Hub::current().capture_event(sentry_core::protocol::Event { message: Some("Hello world!".into()), ..Default::default() }); }
Debug
Known issues
gotchaRequires a DSN to be set via environment variable or init call.
fix
Set SENTRY_DSN environment variable or pass DSN to sentry::init.
affects: >=0.48.0
Upgrade
Version history
0.48.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
2
Resources
sentry-core — cargo add sentry-core · libregistry