Skip to content

Add tracing instrumentation for prover stages#53

Merged
samuelburnham merged 1 commit into
mainfrom
sb/streaming-print
May 14, 2026
Merged

Add tracing instrumentation for prover stages#53
samuelburnham merged 1 commit into
mainfrom
sb/streaming-print

Conversation

@samuelburnham
Copy link
Copy Markdown
Member

Add tracing instrumentation for profiling proof generation. If there is no subscriber initialized then the overhead is negligible, but applications can add subscribers like tracing-texray to collect and display the output.

Emit `tracing` spans for each major STARK proving stage in
`System::prove_multiple_claims`: stage 1 commit, lookup construction,
stage 2 commit, quotient, and FRI opening. Lookup trace construction
itself is broken into `lookup_messages`, `batch_inverse`, and
`lookup_traces` sub-spans. The whole call is wrapped in `stark/prove`
via `#[tracing::instrument]`.

No subscriber is installed here — downstream consumers wire up a
subscriber (e.g. `tracing-texray`) to consume the spans.
Copy link
Copy Markdown
Member

@arthurpaulino arthurpaulino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm often unsure whether tracing instrumentation should live in the main branch. But we can decide that later. For now, this will help us a lot.

@samuelburnham samuelburnham merged commit 9ecab51 into main May 14, 2026
4 checks passed
@samuelburnham samuelburnham deleted the sb/streaming-print branch May 14, 2026 20:04
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.

2 participants