Expand description
§tracing-loki-but-better
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: userustlsas the TLS backend. Enabled by default.native-tls: usenative-tlsas the TLS backend.
§Examples
See the examples folder.
Structs§
- Background
Task - The background task for sending logs off to Loki.
- Background
Task Handle - A handle to shut down a background task.
Call
Self::shutdownto shut down the associated task. - Loki
Builder - Builder for constructing a
LokiLayerand its correspondingBackgroundTask. - Loki
Layer - The
Layerimplementation for shipping logs to Loki.