3 ms·
Can't wait to try this out! I always wanted the ability to see the tasks that are currently running or waiting. In the screenshots I can see that tasks have de
by dthul 5y ago
Can't wait to try this out! I always wanted the ability to see the tasks that are currently running or waiting.
In the screenshots I can see that tasks have descriptive names. Does anybody know how to set the name for a task? tokio::spawn doesn't take a name parameter. Does it require `tracing`?
- lkt 5y agoLooks like they have added a builder for tokio::task[1] that will allow you to set a name. It's unstable at the moment so you would need to set the tokio_unstable cfg flag. [1]: https://github.com/tokio-rs/tokio/blob/master/tokio/src/task/builder.rs https://github.com/tokio-rs/tokio/blob/master/tokio/src/task...
- carllerche 5y agoExactly, this is the first release of Tokio Console. We will keep adding functionality over time, which will help inform the APIs in Tokio to better provide the necessary instrumentation. I expect the new APIs like the task builder will stabilize (no longer require the `tokio_unstable` flag) over the course of 2022.