Skip to content

feat: prepare browser telemetry through an approved proxy - #26

Merged
simonvanlierde merged 8 commits into
mainfrom
feat/browser-rum
Nov 14, 2026
Merged

simonvanlierde merged 8 commits into
mainfrom
feat/browser-rum

Conversation

@simonvanlierde

@simonvanlierde simonvanlierde commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Add browser telemetry to the shared layout, enabled only when an approved HTTPS proxy is configured at build time. Collector credentials stay out of browser code.

  • Wire the public endpoint into Pages builds and reject URLs carrying credentials, queries or fragments.
  • Capture final LCP and session-window CLS; distinguish unsupported CLS from zero.
  • Collect technical error metadata only. Exclude messages, stacks and rejection values; sanitize script URLs and omit browser cookies and referrers.
  • Document secure ingress and live verification. Preserve current main's social-card metadata alongside conditional RUM.

Tested: Astro check, lint, all 40 tests and production build pass locally. Native Chromium confirms no cookies or Referer header. Build/vitals/privacy regressions failed before their fixes; buffered LCP/CLS mutations fail.

Not checked: live browser delivery, Loki or probe verification. No endpoint is configured or deployed; maintainers must agree collection before rollout.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simonvanlierde
simonvanlierde merged commit 1e69ca7 into main Nov 14, 2026
4 checks passed
@simonvanlierde
simonvanlierde deleted the feat/browser-rum branch November 14, 2026 17:00
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