Expand description
Export adapters for fast-telemetry metrics.
This crate provides the I/O layer for getting fast-telemetry metrics out of your process: DogStatsD over UDP, OTLP over HTTP/protobuf, ClickHouse native TCP, span export, and stale-series sweeping.
Exporters are generic — they accept closures for metric serialization so
they work with any metrics struct, not just a specific AllMetrics type.
§Configuration highlights
- OTLP metrics and span exporters support custom
service.name, instrumentation scope names, additional resource attributes, per-request headers, and request timeouts. - OTLP exporters gzip-compress larger protobuf payloads automatically and use exponential backoff after transport failures.
- The span exporter also exposes
max_batch_sizeto bound work per cycle. - The stale-series sweeper expects the caller to invoke
fast_telemetry::advance_cycle()once per sweep and then call each dynamic metric’sevict_stale(...)method.
§Features
dogstatsd(default) — DogStatsD UDP exporterotlp(default) — OTLP HTTP/protobuf metrics and span exportersclickhouse— ClickHouse native-protocol metrics exporter, including first-party rows and OTel-standard table support (viaklickhouse)
Modules§
- clickhouse
- ClickHouse native-protocol metrics exporter.
- dogstatsd
- DogStatsD metrics exporter.
- otlp
- OTLP HTTP/protobuf metrics exporter.
- spans
- OTLP HTTP/protobuf span exporter.
- sweeper
- Periodic sweeper for stale dynamic metric series.