Skip to content

Measure frontend API outcomes retries and body failures - #118

Merged
mzupan merged 2 commits into
mainfrom
codex/frontend-api-health-metrics
Nov 15, 2026
Merged

mzupan merged 2 commits into
mainfrom
codex/frontend-api-health-metrics

Conversation

@mzupan

@mzupan mzupan commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

HTTP 200 and successful retries currently hide malformed responses, failed body reads and additional transport work. Record bounded ten-second summaries for final logical JSON request outcomes, individual attempts, retries and response-body lifecycles. Logical request duration includes reading and decoding the body. Expected cancellation is a separate outcome; resource identifiers, URLs, queries and error messages are never attributes. RUM ingest is excluded.

Includes a small bounded operational aggregate sink that buffers before RUM initialization without running a timer when collection is disabled. The same helper commit is included unchanged in the other standalone operational-health PRs, so these PRs share no merge-order dependency. Runtime enablement in #117 is needed for standard released images to send telemetry.

Validation: 27 focused transport/cache/health tests, 10 final health/privacy tests, production build and typecheck. Tests cover retry recovery, deferred bodies, HTTP-200 decode failures, mid-body failures, finite labels and preservation through the production RUM sanitizer.

Combined validation: all six frontend health PRs merge together without conflicts. The integrated suite passes 645 tests in 107 files and the production build/typecheck. A production-bundle Chrome smoke verified runtime opt-in, actual package version/environment, API/body events, failed lazy-route navigation, investigation completion/malformed-event counts and browser offline/recovery duration. Eleven custom event types arrived through the SDK and production privacy scrubber without query text or user identifiers in their attributes.

@mzupan
mzupan merged commit a2f6605 into main Nov 15, 2026
4 checks passed
@mzupan
mzupan deleted the codex/frontend-api-health-metrics branch November 15, 2026 22:23
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