Skip to content

hotfix(wormhole-vaa-latency): emit ms not seconds (fix 0.0s display) - #1388

Merged
Flotapponnier merged 1 commit into
devfrom
hotfix/wormhole-ms
Jul 24, 2026
Merged

hotfix(wormhole-vaa-latency): emit ms not seconds (fix 0.0s display)#1388
Flotapponnier merged 1 commit into
devfrom
hotfix/wormhole-ms

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

See commit body.

Site display bug: harness emitted latency in seconds (4.25s BNB p50),
but the site formatter divides all latency histograms by 1000 to
convert its internal ms to display seconds. 4.25s / 1000 = 0.00425s
rendered as '0.0 s' across all 4 rows.

Fix: rename metric wormhole_vaa_latency_seconds -> _milliseconds, emit
delta * 1000, scale buckets 1000x (2s -> 2000ms etc). Update spec
queries to point at the new metric names. Bump cache keys v44->v45,
v47->v48. Existing metric samples become orphaned; new samples start
populating the correct series immediately.

Diff: metrics.go rename + main.go .Seconds() -> .Milliseconds() + spec
sed s/_seconds/_milliseconds/g + unit: s -> ms + cache key bump. Bench
YAML rest unchanged.
@Flotapponnier
Flotapponnier merged commit 917b61b into dev Jul 24, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the hotfix/wormhole-ms branch July 24, 2026 15:36
Flotapponnier added a commit that referenced this pull request Jul 24, 2026
…1389)

Site display bug: harness emitted latency in seconds (4.25s BNB p50),
but the site formatter divides all latency histograms by 1000 to
convert its internal ms to display seconds. 4.25s / 1000 = 0.00425s
rendered as '0.0 s' across all 4 rows.

Fix: rename metric wormhole_vaa_latency_seconds -> _milliseconds, emit
delta * 1000, scale buckets 1000x (2s -> 2000ms etc). Update spec
queries to point at the new metric names. Bump cache keys v44->v45,
v47->v48. Existing metric samples become orphaned; new samples start
populating the correct series immediately.

Diff: metrics.go rename + main.go .Seconds() -> .Milliseconds() + spec
sed s/_seconds/_milliseconds/g + unit: s -> ms + cache key bump. Bench
YAML rest unchanged.

Co-authored-by: Florent Tapponnier <contact@mobula.io>
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