tokio-rs / console-gsoc

Google Summer of Code tokio-console prototype
MIT License
12 stars 2 forks source link

Format events in their span contexts #30

Open hawkw opened 5 years ago

hawkw commented 5 years ago

Currently, when the console prints out events, it does not show the span context in which they occurred. As far as I can tell, there isn't really any way to show span data currently.

I think that spans should probably be formatted with fields from their parent spans (and possibly the names of those spans as well), similarly to how tracing-fmt prints out the shaving_yaks and shave spans in this example: Screen Shot 2019-07-24 at 1 28 58 PM (of course, the particulars of how spans are actually formatted need not be identical)

The ability to show/hide these span contexts could also be added, in the future.