tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.15k stars 673 forks source link

Publish tracing-macros package? #2955

Open joshka opened 2 months ago

joshka commented 2 months ago

Feature Request

Crates

tracing-macros

Motivation

Hey there! Are there any plans to publish tracing_macros

In Ratatui docs, we're suggesting that users create a macro similar to the dbg! macro defined in https://github.com/tokio-rs/tracing/blob/master/tracing-macros/src/lib.rs. The person writing our docs for this suggested using trace_dbg! for the macro name instead of overriding the existing dbg! macro, but I can see the argument either way. It would be nice to have this macro available as something that can be included directly rather than written in each user's app for this however.

Proposal

Actually publish https://crates.io/crates/tracing_macros with the macros defined.

Alternatives

From https://discord.com/channels/500028886025895936/974721015999516672/1224430040423334049