Install
Initialize
main.rs
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.