feat(observability): enable Sentry tracking in preview deployments (#1374)#1387
Draft
Orlandohub wants to merge 2 commits intodevfrom
Draft
feat(observability): enable Sentry tracking in preview deployments (#1374)#1387Orlandohub wants to merge 2 commits intodevfrom
Orlandohub wants to merge 2 commits intodevfrom
Conversation
…1374) Configure Sentry for preview builds by wiring auth token and public DSN through env validation, Docker build args, and CI workflow settings. This ensures preview errors are captured with source maps while keeping runtime setup environment-driven.
🚀 Preview DeploymentURL: https://franky-preview-pr-1387-fzxmjul7ya-oa.a.run.app
|
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.
IMPORTANT
Tests are failing because of header error test button added without updating snapshots!
This is known and expected while in DRAFT mode
Summary
Changes
src/instrumentation-client.ts,src/global-error.tsx) and gate behavior for staging/preview.next.config.ts).SENTRY_AUTH_TOKENandNEXT_PUBLIC_SENTRY_DSNin env parsing (src/libs/env/env.ts) and document DSN in.env.example..github/workflows/build-docker-image.yml,Dockerfile)..cursor/rules/sentry.mdc,package.json,package-lock.json).Screen.Recording.2026-02-25.at.12.50.02.mov
Test plan
SENTRY_AUTH_TOKENconfigured in GitHub Actions secrets.Notes
NEXT_PUBLIC_SENTRY_DSNis public by design and included as a build-time public env value; onlySENTRY_AUTH_TOKENmust remain secret.