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 
-
-
Show 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.
Show 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.
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 -
-
-
if you have a chance, we'd love a PR to add a link to the list of related crates here: https://docs.rs/tracing/0.1.13/tracing/#related-crates …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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
It took me two days, a bunch of poisoned Mutexes and some head scratching, but it now works as expected 