rustlavel-otel 0.9.0

OpenTelemetry for Rustlavel: traces, metrics and logs exported over OTLP
Documentation

rustlavel-otel

OpenTelemetry for Rustlavel: traces and metrics exported over OTLP.

Part of Rustlavel, a full-stack web framework for Rust written from scratch — no Axum, no hyper, no SeaORM. Tokio is the only large dependency.

Using it

Enable it through the meta-crate rather than depending on this one directly, so the versions stay in step:

[dependencies]
rustlavel = { version = "0.9", features = ["otel"] }

Logs

Traces and metrics are on by default; logs are opt-in, because they can carry anything an application prints. Enable them with OpenTelemetry::new().logs(true), otel.logs.enabled, or OTEL_LOGS_EXPORTER=otlp. A line written while a request is being handled carries that request's trace and span id, so a collector can show it beside the trace. Verified against the OpenTelemetry Collector 0.160, in both protobuf and JSON.

Documentation

Licence

MIT.