tokio-rs / tracing

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

subscriber: strip quotes of EnvFilter field values #3016

Closed rustonaut closed 1 week ago

rustonaut commented 1 week ago

Motivation

The documentation states that [span_b{name=\"bob\"}] should match spans where the value of name is bob but it does match spans where the value of name is "bob".

Additionally there is no good way to match strings which happen to be true, false or a number. [{value="true"}] matches the rust string r#""true""# and [{value=true}] only matches a bool value true but not a string true.

Solution

Partially Fixes: #1181 Fixes: #2809

Stability Considerations

rustonaut commented 1 week ago

Some additional comments:

rustonaut commented 1 week ago

Closed as fixing the issues also introduce breaking changes, instead following will be done: