#open-telemetry #logging #tracing #tracing-subscriber #spans #logfmt #fork

tracing-logfmt-otel

A fork of tracing-logfmt with added support for opentelemetry span data

2 unstable releases

0.2.0 Jan 15, 2024
0.1.0 Oct 31, 2023

#5 in #logfmt

Download history 34/week @ 2024-07-22 166/week @ 2024-07-29 134/week @ 2024-08-05 319/week @ 2024-08-12 971/week @ 2024-08-19 416/week @ 2024-08-26 252/week @ 2024-09-02 246/week @ 2024-09-09 240/week @ 2024-09-16 286/week @ 2024-09-23 106/week @ 2024-09-30 115/week @ 2024-10-07 78/week @ 2024-10-14 123/week @ 2024-10-21 127/week @ 2024-10-28 89/week @ 2024-11-04

418 downloads per month

MIT/Apache

36KB
832 lines

🪵️ tracing-logfmt-otel

Logfmt formatter for tracing-subscriber with opentelemetry support

Embark Embark Crates.io Docs dependency status Build status

Opentelemetry support

This crate is a fork of EmbarkStudios/tracing-logfmt that adds the opentelemetry trace and span id to the log output.

Logfmt

Logfmt is a compact and simple log format for structured logging. Each log row contains one level of key/value pairs. To keep it as compact and readable as possible, values are only quoted if needed.

key=value otherkey="value with spaces" third="with escaped \"chars\""

There is no strict standard for the format, but it was first documented in this article by Brandur Leach.

License

This contribution is dual licensed under EITHER OF

at your option.

For clarity, "your" refers to Embark or any other licensee/user of the contribution.

Dependencies

~6–18MB
~183K SLoC