starknet_transaction_prover: proving-job duration + outcome metrics#14168
starknet_transaction_prover: proving-job duration + outcome metrics#14168avi-starkware wants to merge 1 commit into
Conversation
PR SummaryLow Risk Overview
New metric names live under Reviewed by Cursor Bugbot for commit cddf9b5. Bugbot is set up for automated code reviews on this repo. Configure here. |
7d179cb to
a0e7299
Compare
5eb413f to
186e4cf
Compare
a0e7299 to
00671e6
Compare
186e4cf to
9959caa
Compare
00671e6 to
68683f0
Compare
9959caa to
1733122
Compare
00f7551 to
b51be4a
Compare
1733122 to
4403df0
Compare
b51be4a to
396774b
Compare
3e19b68 to
f196a34
Compare
fb01d37 to
f1b98e4
Compare
9898133 to
6974938
Compare
aa40e3d to
3790635
Compare
6974938 to
d0b3654
Compare
6834e33 to
c055b5f
Compare
d0b3654 to
d84bd92
Compare
c055b5f to
b9b156a
Compare
b2da23d to
ac34a57
Compare
b9b156a to
69e6de4
Compare
ac34a57 to
97f32a2
Compare
8abd666 to
bca1e04
Compare
97f32a2 to
15f1abf
Compare
bca1e04 to
bc665d6
Compare
15f1abf to
931d783
Compare
931d783 to
a61deca
Compare
bc665d6 to
1b6d8fc
Compare
a61deca to
fb3d592
Compare
1b6d8fc to
25d9c60
Compare
Adds Prometheus counters / histograms recorded by `VirtualSnosProver` for each proving job: total count by outcome (`success`, `validation_error`, `internal_error`, `l1_provider_error`) and end-to-end duration. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fb3d592 to
cddf9b5
Compare
25d9c60 to
8cb8c0f
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cddf9b5. Configure here.
| let prove_duration = prove_start.elapsed(); | ||
| metrics::histogram!(metric_names::STWO_PROVE_DURATION_SECONDS) | ||
| .record(prove_duration.as_secs_f64()); | ||
| info!(prove_duration_ms = %prove_duration.as_millis(), "Proving completed"); |
There was a problem hiding this comment.
Blocked requests skew sub-step metrics
Medium Severity
When a blocking check returns blocked, prove_with_blocking_check aborts the spawned run_and_prove task but still returns failure_blocked on the top-level outcome counter. That background task can finish OS or proving first and increment prover_os_run_duration_seconds and prover_stwo_prove_duration_seconds even though the request is not counted as success.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit cddf9b5. Configure here.



Adds Prometheus counters / histograms recorded by
VirtualSnosProverforeach proving job: total count by outcome (
success,validation_error,internal_error,l1_provider_error) and end-to-end duration.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com