Structured Logging #379
Labels
area - codegen
The code gets generated when compiling a Rune
category - enhancement
New feature or request
effort - easy
This should be pretty simple
For telemetry, we'd like a Rune to tell us when certain events happen (start of proc block X, etc.) so we can pass that on information to the user.
One way we can do this is by switching from the
log
crate to something that supports structured logging (e.g.tracing
). Then we just need to set up "well-known" messages that the runtime can look out for and translate into telemetry events (e.g. by wrapping the call in a span). Then it's just a case of wiring up aSubscriber
that passes these events to_debug()
.cc: @jacekpie
The text was updated successfully, but these errors were encountered: