-
How would I do it? There does not seem to be any docs about doing that in this repo or anywhere else. |
Beta Was this translation helpful? Give feedback.
Answered by
hds
Oct 17, 2024
Replies: 1 comment 2 replies
-
Do you mean you want to implement console support for some other runtime that isn't Tokio? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is currently no specification for the instrumentation present in Tokio.
To understand it, you can read the
console-subscriber
source code or thetokio
source code.I have also written about it a bit on my personal blog in the following posts:
Certainly, starting with tasks, the
tokio
source code is quite clear in the fields that are included for task spawning:https://github.com/tokio-rs/tokio/blob/512e9decfb683d22f4a145459142542caa0894c9/tokio/src/util/trace.rs#L54-L79
Do…