Add Sentry browser SDK (error monitoring, tracing, session replay)#74
Closed
Add Sentry browser SDK (error monitoring, tracing, session replay)#74
Conversation
Agent-Logs-Url: https://github.com/ProLoser/funcheapmap/sessions/37197c81-8a46-4714-bcb6-f51944eb0b9d Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ProLoser
April 19, 2026 20:26
View session
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Sentry Browser SDK to both pages of the site using the CDN bundle path (
@sentry/browserv10.42.0), which is the right approach for a no-build-tool static site.What's included
browserTracingIntegration()replayIntegration()Files changed
index.htmlSentry.init()added before other scripts19hz/index.html.github/workflows/deploy.ymlSENTRY_DSNsecret viased.github/workflows/preview.yml.env.exampleSENTRY_DSNplaceholderSetup required
Add a
SENTRY_DSNGitHub 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).