Skip to content

feat(v2:metrics): implement histograms on services - #1777

Draft
ajw221 wants to merge 3 commits into
adamw/v2-grafana-metricsfrom
adamw/implement-service-histograms
Draft

feat(v2:metrics): implement histograms on services#1777
ajw221 wants to merge 3 commits into
adamw/v2-grafana-metricsfrom
adamw/implement-service-histograms

Conversation

@ajw221

@ajw221 ajw221 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Intent

TODO

Implementation

TODO

Ramifications

  • 2,347 of the line additions in this PR are solely due to shred_receiver.json being updated

Tests

TODO

ajw221 added 2 commits July 30, 2026 01:10
- Add ReceiverMetrics with per-method LatencyHistograms for reset,
  updateSlotRange, and processPacket
- Add ResultLatencyHistogram to telemetry lib, which flattens an
  `Error!Payload` into one series per outcome via `variant` labels
- Wire metrics through Receiver.init and observe timings around each
  method, exposing outcome-tagged series for processPacket
- Add Grafana dashboard for the shred receiver
- Make error sets explicit on shred parsing, merkle root computation,
  and ed25519 signature verification so processPacket's error set is
  nameable
@ajw221 ajw221 self-assigned this Jul 30, 2026
@github-project-automation github-project-automation Bot moved this to 🏗 In progress in Sig Jul 30, 2026
@ajw221
ajw221 changed the base branch from main to adamw/v2-grafana-metrics July 30, 2026 18:14
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.77108% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
v2/components/shred/ReceiverMetrics.zig 50.00% 9 Missing ⚠️
v2/services/shred_receiver.zig 0.00% 2 Missing ⚠️
v2/lib/telemetry.zig 98.71% 1 Missing ⚠️
Files with missing lines Coverage Δ
v2/components/shred/api.zig 64.44% <100.00%> (ø)
v2/components/shred/receiver.zig 72.64% <100.00%> (+0.82%) ⬆️
v2/lib/crypto/ed25519.zig 100.00% <100.00%> (ø)
v2/lib/solana/signature.zig 100.00% <100.00%> (ø)
v2/lib/telemetry/metric.zig 84.77% <100.00%> (+2.32%) ⬆️
v2/lib/telemetry.zig 92.11% <98.71%> (+0.75%) ⬆️
v2/services/shred_receiver.zig 0.00% <0.00%> (ø)
v2/components/shred/ReceiverMetrics.zig 50.00% <50.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

1 participant