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 -
Replying to @algo_luca
field names are declared statically as they are part of a span's metadata. this is so they can be used for filtering spans before recording values. i think there should be a note in the docs about this, but if there's anything we can do to make this clearer, please let me know!
1 reply 0 retweets 0 likes
There are a couple of places when this is mentioned, but it's somewhat implicit - I can submit a PR for it 
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