Skip to content

How-to guides

Short answers to "how do I do X". If you have never used the crate before, start with the tutorial: Record your first event.

Guide Use it when
Persist a user's consent decision You need the answer to survive between runs.
Write events to a file You want a local audit trail, or a file something else ships.
Send events to an HTTPS endpoint You have a collection endpoint of your own.
Export to an OTLP collector You already run OpenTelemetry infrastructure.
Write a custom sink None of the built-ins fits — including fan-out and buffering.
Assert on events in tests You want to prove your tool records what you think it records.

Exact defaults and failure modes for everything referenced here are in Reference.