Five point releases later, I am almost confident to say it's ready: a Bunyan formatter for @tokio_rs's tracing
It took me two days, a bunch of poisoned Mutexes and some head scratching, but it now works as expected
https://github.com/LukeMathWalker/tracing-bunyan-formatter …
The #[instrument] macro is quite convenient and with the timer I embedded in the JsonStorageLayer I get most of the information I need out of the box.
-
-
The journey was not smooth sail though: I was not so pleasantly surprised when I found out that `insert` on `extensions` panics if there is already a value with the same type registered.
Show this thread -
I was also quite confused when I found out that `record` on a span will silently drop values that have not been added as Empty at the moment of span creation.
Show this thread -
If I find some time over the next couple of weeks I'll try to jot down some notes about the whole thing.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at
