#loki #tracing #tracing-loki

tracing-loki-but-better

A tracing layer for shipping logs to Grafana Loki

3 releases

Uses new Rust 2024

0.1.2 Oct 2, 2025
0.1.1 Oct 2, 2025
0.1.0 Oct 2, 2025

#589 in Debugging

Download history 347/week @ 2025-10-01 30/week @ 2025-10-08

377 downloads per month

MIT/Apache

39KB
942 lines

tracing-loki-but-better

A tracing layer for Loki.

Some code reused from tracing-loki, but the most critical parts of the code (namely BackgroundTask) have been entirely rewritten to avoid queues and manual implementations of futures (in other words, this crate has less memory and less CPU use).

Features

  • rustls: use rustls as the TLS backend. Enabled by default.
  • native-tls: use native-tls as the TLS backend.

Examples

See the examples folder.

Dependencies

~7–21MB
~249K SLoC