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. Sampling is deterministic and outcome-aware. Errors and slow operations stay at full fidelity by default. Rate-based decisions with the same trace and outcome class are identical; a user or release allowlist can override the rate. Separate outcome rates can keep a failure after routine work from the same trace was dropped. Use Collector tail sampling when every span in a trace must receive one decision. If a sampled operation has measurements, the SDK still sends the measurements.

Capture errors

Add context

Trace identifiers

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

Agent handoff