{"timestamp":"2026-11-20T20:26:48.537496Z","level":"INFO","target":"oxtel","message":"log lines: standard error, as JSON; traces, metrics and logs: not exported (set OTEL_EXPORTER_OTLP_ENDPOINT to send them to a collector)"}
2026-11-20T20:26:48.926831Z INFO oxtel: log lines: standard error, as text; traces, metrics and logs: not exported (set OTEL_EXPORTER_OTLP_ENDPOINT to send them to a collector)
2026-11-20T20:26:48.926885Z INFO logs: signed in user.id=42 plan=team
The first line is oxtel’s own. It says, in plain words, where each kind of telemetry goes, and here that nothing leaves the program. After it come the program’s lines. Each field is a key of its own, and lines inside a span carry its fields and its trace id, so you can find everything one request did. CI runs the example and checks it still prints these lines.
Rust code already records spans, logs and metrics with tracing and metrics. oxtel turns them into log lines, OTLP for collectors and backends, and Prometheus scrapes. There’s no second API to learn, and no bridge between two.
One line per framework
A layer for axum and tower services, a wrapper for MCP servers and clients, one line for SQLite, PostgreSQL and sqlx. Each records what the OpenTelemetry conventions name, under their names.
Nothing is sent until you say so
With no settings, you get log lines and nothing else. Set OTEL_EXPORTER_OTLP_ENDPOINT and traces, metrics and logs go there, with no rebuild. A program that only wants logs can leave out every HTTP and TLS crate.
Failures are explained
When sending fails, oxtel says so at once, with where it was sending, why it failed and what to check. Then it counts quietly, and says when sending works again.
Measured against the official OpenTelemetry Rust SDK with tracing-opentelemetry, doing the same work on the same machine, in October 2026. Lower is better.
What
oxtel
Official stack
A span with 3 fields
258 ns
671 ns
A span that isn’t sampled
84 ns
589 ns
A counter, with attributes on each call
13 ns
23 ns
A counter, 8 threads on one series
0.4–0.6 ns
20–65 ns
CPU per span, sent over OTLP at 40,000 spans/s
5.3 µs
7.2 µs
In a burst, oxtel exports 1.9 times as many spans a second, with 2.5 times less CPU per span, and both stay within 1.5 MiB. The benchmarks say how each was measured and made fair, with every number and how to reproduce them.
An OpenTelemetry Collector decodes oxtel’s traces, metrics and logs on every change, over protobuf and JSON, and CI compares what it got with what was sent. The conformance tests list what’s checked.
Prometheus’s own checker, promtool, reads oxtel’s /metrics page, and the Collector’s Prometheus receiver scrapes it.
The names come from the conventions. OpenTelemetry’s Weaver generates them from a pinned conventions release, and CI checks they match.
Input from outside is fuzzed. On every change, CI fuzzes the parsers of trace context and baggage headers, configuration files, and the lists in environment variables: none may panic, and accepted trace context and baggage must come back unchanged from a round trip. Property tests check the same of the trace context, baggage and resource attribute parsers.