All SDKs

tracing

v

sentry-tracing

Use the official Sentry SDK with the DSN shown in your AllStak project setup. No AllStak-specific SDK is required.

Install

These official Sentry commands come from the AllStak-managed SDK catalog.

cargo
cargo add sentry-tracing

Quick start

let _guard = sentry::init((
    "{{DSN}}",
    sentry::ClientOptions {
        environment: Some("production".into()),
        release: Some("[email protected]".into()),
        traces_sample_rate: 1.0,
        // Off by default. Enable only if you accept sending usernames,
        // emails and IP addresses to your telemetry backend.
        send_default_pii: false,
        ..Default::default()
    },
));

sentry::capture_message("hello from sentry-rust", sentry::Level::Error);