Skip to content

fix: restore delivered_events metric recording#771

Merged
alexluong merged 3 commits into
mainfrom
fix/restore-delivered-events-metric
Mar 18, 2026
Merged

fix: restore delivered_events metric recording#771
alexluong merged 3 commits into
mainfrom
fix/restore-delivered-events-metric

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

Summary

  • Restore outpost.delivered_events OTEL metric that was accidentally dropped during the DeliveryEventDeliveryTask refactor in chore: remove delivery event concept #653
  • Add RecordDeliveryResult(ok bool) on DeliverSpan so doHandle can signal delivery outcome, emitting EventDelivered in End()
  • Fix Grafana dashboard querying status="ok" instead of status="success" for delivered events panels
  • Fix otel-collector config for newer collector versions (addressreaders)
  • Document why emetrics.New() error is safely ignored

Test plan

  • Verified on main: delivered_events metric is absent (bug confirmed)
  • Verified on branch: delivered_events metric is present with correct status and type dimensions
  • All 6 outpost metrics confirmed working via OTEL → Prometheus → Grafana pipeline
  • Grafana dashboard shows both success/failed lines in Event Delivery Status panel
  • go build ./... passes
  • go test ./internal/deliverymq/... passes

🤖 Generated with Claude Code

alexluong and others added 3 commits March 18, 2026 17:05
EventDelivered() was accidentally dropped in the DeliveryEvent →
DeliveryTask refactor (PR #653). The old code derived delivery
success/failure from the model, but DeliveryTask no longer carries
result data. Add RecordDeliveryResult on DeliverSpan so doHandle
can signal the outcome, and emit the metric in End().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dashboard queried status="ok" but the code emits status="success"
for delivered_events metric. Also update otel-collector telemetry
config for newer collector versions (address → readers).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Mar 18, 2026 10:52am
outpost-website Ready Ready Preview, Comment Mar 18, 2026 10:52am

Request Review

@vercel vercel Bot temporarily deployed to Preview – outpost-docs March 18, 2026 10:52 Inactive
@alexluong alexluong merged commit 18899c9 into main Mar 18, 2026
5 checks passed
@alexluong alexluong deleted the fix/restore-delivered-events-metric branch March 18, 2026 13:32
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