Skip to content

feat: add Sentry error monitoring to frontend#260

Open
Javiershenbc wants to merge 1 commit into
mainfrom
feature/sentry-frontend-upgrade
Open

feat: add Sentry error monitoring to frontend#260
Javiershenbc wants to merge 1 commit into
mainfrom
feature/sentry-frontend-upgrade

Conversation

@Javiershenbc

Copy link
Copy Markdown
Collaborator

Upgrade @sentry/react v5 to v10 and complete the frontend integration (errors-only, no performance tracing or session replay).

  • init moved to src/instrument.ts with sendDefaultPii disabled; browser events routed same-origin through a /tunnel endpoint to avoid ad-blockers

  • wrap the app in Sentry.ErrorBoundary and report errors from the shared ErrorComponent (covers the route-level errorComponent usages)

  • capture network and 5xx errors in the axios response interceptor

  • attach the MSAL user id via Sentry.setUser (no email/IP)

  • generate hidden sourcemaps and upload them to the self-hosted Sentry via @sentry/vite-plugin, deleting the .map files after upload

  • add backend POST /tunnel endpoint + SENTRY_TUNNEL_HOST setting to forward envelopes to the Sentry server

  • thread Sentry build args/secrets through Dockerfile.prod and Azure pipeline

Upgrade @sentry/react v5 to v10 and complete the frontend integration (errors-only, no performance tracing or session replay).

- init moved to src/instrument.ts with sendDefaultPii disabled; browser events routed same-origin through a /tunnel endpoint to avoid ad-blockers

- wrap the app in Sentry.ErrorBoundary and report errors from the shared ErrorComponent (covers the route-level errorComponent usages)

- capture network and 5xx errors in the axios response interceptor

- attach the MSAL user id via Sentry.setUser (no email/IP)

- generate hidden sourcemaps and upload them to the self-hosted Sentry via  @sentry/vite-plugin, deleting the .map files after upload

- add backend POST /tunnel endpoint + SENTRY_TUNNEL_HOST setting to forward envelopes to the Sentry server

- thread Sentry build args/secrets through Dockerfile.prod and Azure pipeline
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