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 …
-
Show this thread
-
It replaced slog on the actix_web API I have been working. I now have the same output format for console logs, but I get distributed tracing instrumentation for free using the OpenTelemetry Subscriber
1 reply 0 retweets 2 likesShow this thread -
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.
1 reply 0 retweets 0 likesShow this thread -
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.
2 replies 0 retweets 0 likesShow 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.
2 replies 0 retweets 0 likesShow 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.
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