tokio-rs / console-gsoc

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

Format strings for events, spans #19

Open matprec opened 5 years ago

matprec commented 5 years ago

Structured messages allows us to have a semantic understanding of events and spans. Browsing through logs with field_name = value could get unwieldy quickly, causing lines to wrap, making it read longer than necessary and difficult to skim.

If we allow users to provide a format string or something similar, we can provide a nicer experience. Since rust std doesn't support non-literal format strings, we probably would have to fall back on a templating solution from the ecosystem.

hawkw commented 5 years ago

See also tokio-rs/tokio#1020