3 ms·
Excellent work! Note, this is also possible in tokio-rs/tracing, by using `.with_file()` and `.with_line_number()` to the subscriber creation.. I'm sure you can
by pcthrowaway 3y ago
Excellent work! Note, this is also possible in tokio-rs/tracing, by using `.with_file()` and `.with_line_number()` to the subscriber creation.. I'm sure you can set up filters/layers for more granular control over this if you don't always want file/line info included, but it's nice to have another option that makes it as easy as using the `#[wherr]` macro, and honestly, tokio-rs/tracing layers and filters are a bit unwieldy.
If you don't need that control though and don't have a problem using `tracing` (which is excellent and very powerful btw), is there any reason to reach for wherr instead?
- brunoqc 3y agotokio-rs/tracing is pretty cool with opentelemetry too.