Skip to content

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

paustint
Copy link
Contributor

Sentry provides some additional user benefits, such as the user feedback widget

Sentry provides some additional user benefits, such as the user feedback widget
Copy link

socket-security bot commented Mar 30, 2025

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@prisma/instrumentation@6.5.0 environment 0 40.3 kB prismabot
npm/@sentry-internal/browser-utils@9.10.1 network 0 744 kB sentry-bot
npm/@sentry-internal/feedback@9.10.1 None 0 605 kB sentry-bot
npm/@sentry-internal/replay-canvas@9.10.1 None 0 802 kB sentry-bot
npm/@sentry-internal/replay@9.10.1 None 0 2.55 MB sentry-bot
npm/@sentry/browser@9.10.1 None 0 0 B
npm/@sentry/core@9.10.1 network 0 3.21 MB sentry-bot
npm/@sentry/node@9.10.1 Transitive: environment, filesystem, shell, unsafe +34 20.8 MB billyvg, evanpurkhiser, haza, ...7 more
npm/@sentry/opentelemetry@9.10.1 None 0 524 kB sentry-bot
npm/@sentry/react@9.10.1 None 0 450 kB sentry-bot

🚮 Removed packages: npm/@trysound/sax@0.2.0, npm/@tsconfig/node10@1.0.9, npm/@tsconfig/node12@1.0.11, npm/@tsconfig/node14@1.0.3, npm/@tsconfig/node16@1.0.3, npm/@tybys/wasm-util@0.9.0, npm/@types/anymatch@3.0.0, npm/@types/archiver@6.0.3, npm/@types/argparse@1.0.38, npm/@types/aria-query@5.0.4, npm/@types/aws-lambda@8.10.143, npm/@types/babel__core@7.1.19, npm/@types/babel__generator@7.6.4, npm/@types/babel__template@7.4.1, npm/@types/babel__traverse@7.17.1, npm/@types/bcrypt@5.0.2, npm/@types/body-parser@1.19.2, npm/@types/bonjour@3.5.13, npm/@types/bunyan@1.8.9, npm/@types/cacheable-request@6.0.3, npm/@types/chrome@0.0.268, npm/@types/connect-history-api-fallback@1.5.4, npm/@types/connect-pg-simple@4.2.4, npm/@types/cookie-parser@1.4.7, npm/@types/cookie@0.4.1, npm/@types/cors@2.8.13, npm/@types/cross-spawn@6.0.6, npm/@types/debug@4.1.12, npm/@types/emscripten@1.39.13, npm/@types/eslint-scope@3.7.3, npm/@types/eslint@8.4.3, npm/@types/estree@1.0.1, npm/@types/express-http-proxy@1.6.6, npm/@types/express-serve-static-core@4.17.35, npm/@types/express-session@1.17.4, npm/@types/express@4.17.21, npm/@types/file-saver@2.0.5, npm/@types/filesystem@0.0.36, npm/@types/filewriter@0.0.33, npm/@types/fs-extra@9.0.13, npm/@types/gapi.auth2@0.0.60, npm/@types/gapi.client@1.0.8, npm/@types/gapi@0.0.42

View full report↗︎

@paustint paustint requested a review from Copilot March 30, 2025 21:56
Copy link

@Copilot Copilot AI left a 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 }}

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