-
-
Notifications
You must be signed in to change notification settings - Fork 23
Migrate from Rollbar to Sentry #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Sentry provides some additional user benefits, such as the user feedback widget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the error tracking mechanism from Rollbar to Sentry, providing enhanced user benefits such as the Sentry user feedback widget. Key changes include:
- Replacing Rollbar hooks, error logging functions, and environment variables with their Sentry equivalents.
- Introducing a new Sentry tunnel route and updating the CSP reporting configuration.
- Removing Rollbar-specific configurations in CI and environment files.
Reviewed Changes
Copilot reviewed 85 out of 88 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
apps/jetstream/src/app/components/core/LazyLoad.tsx | Updated error logging from Rollbar to Sentry. |
apps/jetstream/src/app/components/core/AppInitializer.tsx | Switched from useRollbar to useSentry for initializing error tracking. |
apps/jetstream/src/app/components/billing/Billing.tsx | Replaced Rollbar error handling with Sentry error tracking. |
apps/jetstream/src/app/app.tsx | Updated error boundary usage by removing custom fallback and standardizing Sentry integration. |
apps/jetstream-worker/src/app/config/env-config.ts | Removed Rollbar server token configuration. |
apps/jetstream-web-extension/webpack.config.js | Replaced Rollbar DSN with Sentry DSN in the environment plugin. |
apps/jetstream-web-extension/src/pages/app/App.tsx | Revised error boundary to use Sentry-compatible component. |
apps/jetstream-web-extension/src/environments/environment*.ts | Updated environment variables to use Sentry DSN instead of Rollbar access token. |
apps/geo-ip-api/src/route.utils.ts | Switched error reporting from Rollbar to Sentry. |
apps/cron-tasks/src/config/env-config.ts | Removed Rollbar token configuration. |
apps/api/src/main.ts | Configured CSP report URI with Sentry and added custom header. |
apps/api/src/app/utils/route.utils.ts | Transitioned error logging in route utilities from Rollbar to Sentry. |
apps/api/src/app/utils/response.handlers.ts | Updated response error handlers to capture exceptions via Sentry. |
apps/api/src/app/routes/api.routes.ts | Added a new Sentry tunnel route for processing error envelopes. |
.github/workflows/ci.yml | Removed Rollbar and amplitude keys to align with the migration. |
Files not reviewed (3)
- .env.example: Language not supported
- .release-it.json: Language not supported
- apps/jetstream-web-extension/project.json: Language not supported
Comments suppressed due to low confidence (1)
.github/workflows/ci.yml:12
- The removal of NX_PUBLIC_AMPLITUDE_KEY from the CI configuration might result in missing amplitude tokens, while amplitude is still used in the application. Please verify if this removal was intentional or if the key should be retained.
- NX_PUBLIC_AMPLITUDE_KEY: ${{ secrets.NX_PUBLIC_AMPLITUDE_KEY }}
Sentry provides some additional user benefits, such as the user feedback widget