Skip to content

fix(observability): harden audit and worker telemetry - #928

Merged
tiankaima-copilot merged 9 commits into
mainfrom
codex/observability-hardening
Aug 26, 2026
Merged

fix(observability): harden audit and worker telemetry#928
tiankaima-copilot merged 9 commits into
mainfrom
codex/observability-hardening

Conversation

@tiankaima-copilot

Copy link
Copy Markdown
Collaborator

Summary

  • harden correlation IDs and structured error serialization without logging credentials or raw Queue bodies
  • retain malformed audit/calendar messages through retry and dead-letter handling; expose queue, cron, calendar rebuild, and admin authorization outcomes
  • cache section-page static core data while keeping editable descriptions and viewer state uncached
  • keep persistent traces disabled because Calendar bearer credentials are present in URL paths
  • pin Wrangler 4.113.0 to avoid the confirmed local Assets proxy disconnect regression in 4.123.0

Verification

  • Biome and all source/test/operational TypeScript checks
  • 373 unit test files / 2311 tests
  • 45 integration files passed, 11 skipped / 260 tests passed, 54 skipped
  • REST API E2E: 333 tests passed across CI-mode shards
  • OpenAPI compatibility and GraphQL snapshots
  • production build and Wrangler deploy dry-run

Operational notes

Persistent traces intentionally remain disabled. Structured Workers logs and Analytics Engine carry normalized route families and trusted request IDs without Calendar URL secrets.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
life-ustc 75fc612 Aug 26 2026, 01:31 PM

@tiankaima-copilot

Copy link
Copy Markdown
Collaborator Author

Resolved the initial CI failure after root-cause analysis. Correlation headers were creating two successive Request objects around a body stream, which exposed an upstream Wrangler/Miniflare unread-body proxy defect and produced intermittent 503 responses for PATCH/DELETE. Request IDs now propagate through the existing AsyncLocal runtime context inside one isolate; the internal header is reserved for the PublicSsr service-binding boundary. Verified locally with 100 PATCH + 100 DELETE requests, the targeted calendar suite (17/17), the unsharded REST suite (333/333), 2311 unit tests, all type checks, production build, and deploy dry-run.

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@tiankaima-copilot
tiankaima-copilot merged commit a247ae7 into main Aug 26, 2026
19 checks passed
@tiankaima-copilot
tiankaima-copilot deleted the codex/observability-hardening branch August 26, 2026 13:45
github-actions Bot pushed a commit that referenced this pull request Aug 26, 2026
## [1.93.2](v1.93.1...v1.93.2) (2026-08-26)

### Bug Fixes

* **observability:** harden audit and worker telemetry ([#928](#928)) ([a247ae7](a247ae7))
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.93.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants