-
Notifications
You must be signed in to change notification settings - Fork 5
Task id is always 0 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I missed the |
@najamelan I started a patch to make it work out of the box in #9, but never saw it through to completion. Still unsure if it's a good idea. |
Looks like that is async-std specific? I found a solution that works for me with tracing-futures. The |
Oh, and as an added advantage, that allows you to set any structured data, like a name instead of a numeric task id, which is to be preferred I think. |
Modifying the trace example like this:
I get the following output (as you can see, the task_id is always 0 for the relevant log messages, and log messages from async-std have task_id twice):
The text was updated successfully, but these errors were encountered: