tracing-loki-layer

Crates.iotracing-loki-layer
lib.rstracing-loki-layer
version0.1.0
sourcesrc
created_at2022-07-14 02:13:57.199744
updated_at2022-07-14 02:13:57.199744
descriptionstd::thread (not tokio) log sender to Loki.
homepage
repositoryhttps://github.com/cheetah-game-platform/tracing-loki-layer
max_upload_size
id625400
size20,310
Kviring Alexey (avkviring)

documentation

README

Std thread loki logs sender for tracing

let loki_layer = LokiLayer::new(server.base_url(), Default::default());
let subscriber = tracing_subscriber::Registry::default().with(loki_layer);
let quard = tracing::subscriber::set_default(subscriber);
Commit count: 6

cargo fmt