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

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

#851 in Debugging

Download history 267/week @ 2024-06-02 200/week @ 2024-06-09 124/week @ 2024-06-16 209/week @ 2024-06-23 79/week @ 2024-06-30 107/week @ 2024-07-07 141/week @ 2024-07-14 39/week @ 2024-07-21 161/week @ 2024-07-28 102/week @ 2024-08-04 347/week @ 2024-08-11 972/week @ 2024-08-18 417/week @ 2024-08-25 258/week @ 2024-09-01 248/week @ 2024-09-08 221/week @ 2024-09-15

1,159 downloads per month
Used in init-tracing-opentelemetr…

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