Skip to content

side-channel for collection of traces - #417

Open
rodesai wants to merge 1 commit into
mainfrom
query-tracing
Open

side-channel for collection of traces#417
rodesai wants to merge 1 commit into
mainfrom
query-tracing

Conversation

@rodesai

@rodesai rodesai commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Summary

We use the tracing crate throughout the codebase to collect traces However out-of-the-box it doesn't let you distinguish between perf and functional diagnostic use cases. Traces are very useful for being able to understand where some logical operaiton spends time. However when we enable debug traces we bring along very verbose debug logs that make the traces harder to grok from the log and can themselves hinder performance. This PR addresses this by adding a framework for recording just timing traces and toggling this at either the process level or per-operation. The traces go to a file in chrome format so they can be visualized using Chrome or Perfetto, e.g:

Screenshot 2026-04-18 at 1 08 43 PM

Checklist

  • Tests added/updated
  • cargo fmt and cargo clippy pass
  • Documentation updated (if applicable)

We use the tracing crate throughout the codebase to collect traces
However out-of-the-box it doesn't let you distinguish between perf
and functional diagnostic use cases. Traces are very useful for
being able to understand where some logical operaiton spends time.
However when we enable debug traces we bring along very verbose
debug logs that make the traces harder to grok from the log and
can themselves hinder performance. This PR addresses this by adding
a framework for recording just timing traces and toggling this at
either the process level or per-operation. The traces go to a file
in chrome format so they can be visualized using Chrome or Perfetto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant