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 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.
-
-
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 -
-
-
sorry if this was surprising! the documentation should state this clearly and suggest using `replace` if a value already exists — if that isn't clear from the docs, we should definitely fix that
-
The docs are indeed clear on the point, but my mental picture of Extensions was basically that of a HashMap with types as keys. Thus I intuitively expected the API to behave the same if that makes sense

- 2 more replies
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
