Skip to main content
Use the Rust SDK when you want native error capture from a Rust service without wiring an OpenTelemetry exporter first.

Install

Initialize

main.rs
Empty api_key or project_id values put the SDK in disabled mode, so local development can keep the same initialization path without sending events. The SDK batches buffered events and automatically splits multi-event request bodies at 1 MB. An individual event larger than that remains a single request rather than being silently dropped.

Capture errors

Add context

Trace identifiers

The SDK can mint Squasher-compatible trace and span ids for custom telemetry:

Agent handoff