#logging-tracing #tracing #logging #open-telemetry

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

#676 in Debugging

Download history 17/week @ 2024-01-10 2/week @ 2024-01-17 11/week @ 2024-01-31 17/week @ 2024-02-07 67/week @ 2024-02-14 120/week @ 2024-02-21 99/week @ 2024-02-28 158/week @ 2024-03-06 144/week @ 2024-03-13 166/week @ 2024-03-20 100/week @ 2024-03-27 139/week @ 2024-04-03

595 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–16MB
~186K SLoC