Skip to content

Add Sentry browser SDK (error monitoring, tracing, session replay)#74

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/sentry-sdk-setup-integration
Closed

Add Sentry browser SDK (error monitoring, tracing, session replay)#74
Copilot wants to merge 1 commit intomainfrom
copilot/sentry-sdk-setup-integration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 19, 2026

Adds the Sentry Browser SDK to both pages of the site using the CDN bundle path (@sentry/browser v10.42.0), which is the right approach for a no-build-tool static site.

What's included

  • Error Monitoring — unhandled errors and promise rejections are captured automatically
  • Tracing — page load and user interaction spans via browserTracingIntegration()
  • Session Replay — 10% of sessions recorded, 100% of error sessions recorded via replayIntegration()

Files changed

File Change
index.html Sentry CDN bundle + Sentry.init() added before other scripts
19hz/index.html Same
.github/workflows/deploy.yml Injects SENTRY_DSN secret via sed
.github/workflows/preview.yml Same
.env.example Added SENTRY_DSN placeholder

Setup required

Add a SENTRY_DSN GitHub secret (Settings → Secrets → Actions) with the DSN from your Sentry project (Settings → Projects → your project → SDK Setup).

The typeof Sentry !== 'undefined' guard ensures the site continues working normally if the CDN is blocked (e.g. by ad blockers).

@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-19 20:38 UTC

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