Skip to content

Site: one wide event per request for email and release routes - #4

Merged
lucasdoell merged 1 commit into
mainfrom
polaris/site-wide-events
Oct 3, 2026
Merged

lucasdoell merged 1 commit into
mainfrom
polaris/site-wide-events

Conversation

@lucasdoell

Copy link
Copy Markdown
Member

Adds apps/site/lib/log: one structured wide event per request (canonical log line) with deployment context (commit, deployment, environment, region), request id, status, outcome and duration, sent to Axiom and written to the function log with the ingest result.

The email route records why a request ended: bot check result, which gate rejected it, the validation verdict, missing settings by name, and the SES/STS error type and HTTP status. That answers today's "Email is unavailable" 503, which left no trace. The release routes move onto the same event. Nothing records an email address, its domain, an IP, headers, the body or an error message; tests assert it.

Site tests (187), typecheck, lint, production build and the fake-only feed smoke pass.

Each request now emits a single structured event with deployment context and
why it ended (bot check, gate, validation, missing settings, SES error type),
to Axiom and the function log with the ingest result. No address, IP, header,
body or error message is ever recorded.
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
polaris Ready Ready Preview Oct 3, 2026 1:18am UTC

Request Review

@lucasdoell
lucasdoell merged commit 3a74d86 into main Oct 3, 2026
5 of 8 checks passed

This branch was successfully deployed

1 active deployment
Preview — aeaa0b39 Deployed Oct 3, 2026 by vercel[bot]
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