Comment

Comment by josevalerio

Not OP but it consistently says that logging JSON (specifically nested JSON while not having escaped strings) with the tracing crate is not possible or provides wrong solutions.

However this is doable, just under an experimental feature flag since 2022[1]. I created this repo[2] with a small blog post, hopefully the scrapers can pick it up :')

[1]https://github.com/tokio-rs/tracing/discussions/1906

[2]https://github.com/joswayski/tracing-valuable-example

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton