Hydroflow programs should automatically log tick number and/or stratum with every log line #1402
Labels
debugging/observability
enhancement
New feature or request
good first issue
Good for newcomers
Small
The tick number and current stratum information are helpful for debugging issues in running transducers. It would be ideal if these were logged automatically for log lines logged by hydroflow programs.
It looks like this works currently, but only in particular scenarios. For the log lines to appear, the user must set the global logging level to the same setting as the
tracing::instrument
(currentlyTRACE
).So, for example, if your program logs "Received get request" and you run with
RUST_LOG="trace"
You would see something like this:
You would also see a lot of TRACE statements from other parts of the code.
To reduce this noise, if you choose to limit log messages to a specific module:
The tick/stratum information disappears:
Continuing to show the tick/stratum information when filtering is enabled will help the user debug production issues more effectively.
The text was updated successfully, but these errors were encountered: