Replies: 2 comments
-
Just a bit of further information today. The way it is I have for example one of my Axum/hyper routed callbacks being invoked and all I get in my console are a list of tokio::task targets and the location for every one is If I rejig one of the callback handlers to be something like:
Then I get the behaviour I want but it's really contrived, it requires |
Beta Was this translation helpful? Give feedback.
-
After doing a bunch more reading I see that naming tasks in the way I want is a relatively active topic of discussion in the tokio community and I probably need to be more patient. |
Beta Was this translation helpful? Give feedback.
-
I'm messing around with a proof of concept using hyper, axum, tokio et al. I thought I'd try your console and it's great. One additional thing I'd like to have though is a little more control over some of the fields, such as the name column for starters. Given I'm not manually spawning threads, I'm using basis axum router + handlers, is there any way with the console stack and/or tracing to manually set these? I don't want to contrive up wrapper tasks just for this functionality? I mean, I can contrive handlers for axum endpoints that I can see are being hit in the console but if I build up this POC I'd like to know which of many are being hit at any time.
Things I've tried:
Hopefully you understand what I'm asking, otherwise I can probably throw together some minimal reproducible POC over the weekend.
Beta Was this translation helpful? Give feedback.
All reactions