chore: remove Sentry - #12438
Merged
Merged
Conversation
Removes Sentry error/performance monitoring entirely, keeping Mixpanel analytics intact. - Deletes packages/sentry (the @sentry/browser bundle injected as a content script) and its build task (packages/scripts/src/projects/sentry.ts). - Deletes the Sentry telemetry provider (web3-telemetry/src/providers/Sentry.ts) and the Sentry-only fetch-transaction tracer (captureFetchTransaction.ts); TelemetryAPI.captureException becomes a no-op since Sentry was its only backing provider. - Fixes MixpanelAPI.captureEvent, which was incorrectly gated on the sentry_enabled/sentry_event_enabled flags instead of its own mixpanel_enabled/mixpanel_event_enabled flags (same isProd default, so no behavior change — just no longer coupled to Sentry's flags). - Removes all sentry_* flags, the MASK_SENTRY/MASK_SENTRY_DSN env vars and their webpack DefinePlugin injection, the sentry.js/sentry-patch.js content-script injection (both the dynamic list and the MV3 service worker's importScripts), the @sentry/browser no-restricted-imports eslint rule, and the CI "Create Sentry release" step (including its now-unnecessary git-worktreeconfig workaround) and MASK_SENTRY* secrets. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ly4aKgVW1wnPu2LfzTQuJi
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
Removes Sentry error/performance monitoring entirely, keeping Mixpanel analytics fully intact.
packages/sentry(the@sentry/browserbundle injected as a content script/service-worker script) and its build task (packages/scripts/src/projects/sentry.ts).web3-telemetry/src/providers/Sentry.ts) and the Sentry-only fetch-transaction tracer (captureFetchTransaction.ts);TelemetryAPI.captureExceptionbecomes a no-op since Sentry was its only backing provider (3 call sites left as-is, now harmlessly calling a no-op).MixpanelAPI.captureEventwas incorrectly gated on thesentry_enabled/sentry_event_enabledflags instead of its own dedicatedmixpanel_enabled/mixpanel_event_enabledflags (both default to the sameisProdvalue today, so this is not a behavior change — just removes an accidental coupling to Sentry's flags that would otherwise have broken Mixpanel once those flags were deleted).sentry_*feature flags, theMASK_SENTRY/MASK_SENTRY_DSNenv vars and their webpackDefinePlugininjection, thesentry.js/sentry-patch.jscontent-script injection (both the dynamiccontentScriptListand the MV3 service worker'simportScripts), the@sentry/browserno-restricted-imports eslint rule, and the CI "Create Sentry release" step (including its now-unnecessary git-worktreeconfig workaround) andMASK_SENTRY*secrets fromcompile.yml.Test plan
tsc -b --forceclean (0 errors) across the whole monorepo.eslintclean on all touched files.knipclean — no orphaned files/exports left behind.sentry/@sentry/MASK_SENTRY*/SENTRY_*returns zero real hits (only unrelated phishing-domain blacklist entries that coincidentally contain "sentry" as a substring).pnpm run build) — verifying now, will confirm build output contains nosentry.js/sentry-patch.js.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ly4aKgVW1wnPu2LfzTQuJi