Replace Bugsnag with Sentry#8341
Merged
Merged
Conversation
Migrate error monitoring from Bugsnag to Sentry across both the Ruby backend and JavaScript frontend. Uses Exercism.config.sentry_dsn for backend config and env.json for frontend config, both production-only. - Swap bugsnag gem for sentry-ruby + sentry-rails - Swap @bugsnag/js + @bugsnag/plugin-react for @sentry/react - Replace all Bugsnag.notify() calls with Sentry.capture_exception() - Preserve Active Storage RecordNotFound filter via before_send - Replace skip_bugsnag job pattern with retry_on + excluded_exceptions - Update CSP connect policy for Sentry ingest domain - Update GitHub labels from bot/bugsnag to bot/sentry Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Run bundle install to remove bugsnag from lockfile and add sentry gems. Fix Mocha stubbing errors in sentry_test.rb for cases where url is never accessed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CI runs on Linux and the lockfile only had the darwin platform after the gem swap. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Backend: Exercism.config.sentry_rails_dsn - Frontend: Exercism.config.sentry_js_dsn (piped through env.json) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use beforeSend to always capture errors from logged-in users (with user ID attached) and sample only 1% of errors from logged-out users to avoid excessive noise. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These "Failed to fetch dynamically imported module" TypeErrors are caused by transient network issues, ad blockers, or deploys invalidating cached chunk names. They are not actionable and just create noise. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
bugsnaggem withsentry-ruby+sentry-rails; replace@bugsnag/js+@bugsnag/plugin-reactwith@sentry/reactBugsnag.notify()calls replaced withSentry.capture_exception()(~50 Ruby call sites, 5 JS/TS call sites)Exercism.config.sentry_dsn(backend) andenv.jsonsentry_dsnkey (frontend)before_sendskip_bugsnagjob pattern withretry_on ActiveRecord::Deadlocked+excluded_exceptionssessions.bugsnag.comto*.ingest.sentry.iobot/bugsnagtobot/sentrySetup required
sentry_dsnto Exercism configsentry_dsntoapp/javascript/.config/env.jsonbundle installto update Gemfile.lockTest plan
yarn test— 160 suites passbundle install(needs to be run to update Gemfile.lock)bundle exec rails test:zeitwerk— verify autoloadingbundle exec rubocop --except Metrics— lint checkgrep -ri bugsnag— confirm zero remaining references🤖 Generated with Claude Code