mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 07:20:35 +00:00

## Motivation Fixes #298 ## Solution Add a new function to either parse the name from the macro's attribute or return the default name (instrumented method's name). Do you want to have the previous function's name as a field? In that case, that would require a bit of change (maybe return an option of something from `name`). I added some tests, please tell me if you need more (in the nightly async/await test for example) refs: #298