Skip to content

feat(observability): instrument real-traffic journey outcomes - #9788

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/issue-9786-real-traffic-metrics
Jul 15, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/issue-9786-real-traffic-metrics

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Closes #9786

Summary

  • Add closed, privacy-safe accepted/terminal/latency metrics for chat SSE, pusher sessions, and durable capture finalization.
  • Classify normal pusher closes separately from cancellation and application failures; include setup cancellation, dead-peer timeout, and supervised task crashes.
  • Add reconciliation visibility plus traffic-gated Grafana panels, scrape-health and outcome alerts, and an operational runbook.

Root cause and durable guard

Outcome boundaries were previously inferred from logs and process-local signals rather than one shared, bounded metric contract. The new journey helper validates its closed labels, terminalizes attempts once, tracks durable finalization from persisted job creation through fenced/dead-letter outcomes, and has route/lifecycle regressions for terminal paths.

Verification

  • BACKEND_PYTEST_WORKERS=1 bash backend/test.sh (full backend suite, passed)
  • Focused journey/route/lifecycle suite: 92 passed
  • pyright on changed production files: 0 errors
  • make preflight (15 applicable checks, passed)
  • JSON parse, alert UID uniqueness, and split/combined alert equivalence checks passed

Review

  • Independent Sol subagent review: approved after identifying and verifying fixes for pusher cancellation/crash classification and idle dashboard semantics.

Review in cubic

@Git-on-my-level
Git-on-my-level force-pushed the codex/issue-9786-real-traffic-metrics branch from 4a1c6a9 to 3fe5b93 Compare July 15, 2026 07:44
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor update for PR #9788:

  • Updated the PR branch onto the latest upstream main, clearing the stale cancelled Repo Checks run from the previous head.
  • No unresolved trusted bot review threads remained in the post-push re-scan.

Verification:

  • git diff --check origin/main...HEAD
  • cd backend && ENCRYPTION_SECRET=*** BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-9788-target-tests.txt BACKEND_PYTEST_WORKERS=1 bash test.sh — 58 passed
  • GitHub checks after the update are green/pass or intentionally skipped, including Backend unit suite, Hermetic Backend E2E, Repo Checks Formatting/Hygiene, Desktop Swift CI, OpenAPI Contract, and Detect Changes.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed — looks good; not auto-merging (over scope/size or non-bug area), landing left to maintainer.

@Git-on-my-level
Git-on-my-level merged commit 744a93b into main Jul 15, 2026
22 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/issue-9786-real-traffic-metrics branch July 15, 2026 15:08
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.

[P1] Add real-traffic outcome metrics for chat, pusher, and capture finalization

2 participants