Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attributes: fix instrument with "log" feature (#2599)
## Motivation The instrument macro currently doesn't work with the "log" crate feature: #2585 ## Solution Change the generated code to create a span if either `tracing::if_log_enabled!` or `tracing::level_enabled!`. I'm not sure how to add a test for this or if this is the best solution. Fixes #2585
- Loading branch information