Skip to content

chore: remove unused @metamask/error-reporting-service#41301

Merged
cryptodev-2s merged 1 commit into
mainfrom
chore/remove-unused-error-reporting-service
Mar 27, 2026
Merged

chore: remove unused @metamask/error-reporting-service#41301
cryptodev-2s merged 1 commit into
mainfrom
chore/remove-unused-error-reporting-service

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the @metamask/error-reporting-service package. This service registered a ErrorReportingService:captureException messenger action, but no controller ever called it. Error reporting is now handled directly via messenger.captureException, which is a built-in capability of @metamask/messenger (used e.g. in oauth-service.ts), making this package redundant.

Changelog

CHANGELOG entry: null

Related issues

N/A

Manual testing steps

  1. Build the extension and verify it starts without errors.

Screenshots/Recordings

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Low risk cleanup that removes an unused controller/messenger and dependency; main risk is missing any hidden runtime references during initialization.

Overview
Removes the redundant ErrorReportingService controller: deletes its init + messenger modules/tests, and drops it from controller/messenger registration and metamask-controller initialization.

Also removes the @metamask/error-reporting-service dependency from package.json/yarn.lock and cleans up the related deprecation ignore entry in .yarnrc.yml.

Written by Cursor Bugbot for commit fe77e35. This will update automatically on new commits. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-core-platform Core Platform team label Mar 27, 2026
@cryptodev-2s cryptodev-2s marked this pull request as ready for review March 27, 2026 10:57
@cryptodev-2s cryptodev-2s requested a review from a team as a code owner March 27, 2026 10:57
@cryptodev-2s cryptodev-2s self-assigned this Mar 27, 2026
@cryptodev-2s cryptodev-2s changed the title chore: remove unused @metamask/error-reporting-service chore: remove unused @metamask/error-reporting-service Mar 27, 2026
@metamaskbotv2

metamaskbotv2 Bot commented Mar 27, 2026

Copy link
Copy Markdown
Contributor
Builds ready [fe77e35]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account35528151492405514
total35528151492405514
Confirm Txconfirm_tx609260906093160936093
total609260906093160936093
Bridge User Actionsbridge_load_page23621525216251252
bridge_load_asset_picker27425729417286294
bridge_search_token74170277632764776
total1273126112851012851285
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Chrome Browserify Startup Standard HomeuiStartup15281276193511415811753
load12561030154010413211429
domContentLoaded12461021153210313061415
domInteractive3216114222989
firstPaint2557815562862621155
backgroundConnect22319927313228249
firstReactRender21137182231
initialActions105114
loadScripts1040819132010210961203
setupStore1574681730
numNetworkReqs393188173186
Chrome Browserify Startup Power User HomeuiStartup55612041161632933590714155
load13241149269918813691678
domContentLoaded13021139265417913301618
domInteractive3519155263375
firstPaint218851532191265362
backgroundConnect2596314129902803306310969
firstReactRender26194352837
initialActions104113
loadScripts1059931145211111031271
setupStore1673461829
numNetworkReqs2989848978335399
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2182172201219220
srpButtonToSrpForm97901046103104
confirmSrpToPwForm22212412324
pwFormToMetricsScreen15151601516
metricsToWalletReadyScreen16151601616
doneButtonToHomeScreen58452568658606686
openAccountMenuToAccountListLoaded2933291629531429482953
total3864382938912538843891
Onboarding New WalletcreateWalletToSocialScreen2192172222221222
srpButtonToPwForm1161091298123129
createPwToRecoveryScreen888088
skipBackupToMetricsScreen39384223942
agreeButtonToOnboardingSuccess16151601616
doneButtonToAssetList553366676109633676
total955759106510910441065
Asset DetailsassetClickToPriceChart89839459494
total89839459494
Solana Asset DetailsassetClickToPriceChart634695187295
total634695187295
Import Srp HomeloginToHomeScreen2296224823705023132370
openAccountMenuAfterLogin1006514938142149
homeAfterImportWithNewWallet16253392685101823812685
total415927675431112950825431
Send TransactionsopenSendPageFromHome462576237176
selectTokenToSendFormLoaded37364023740
reviewTransactionToConfirmationPage93689398433947984
total100799010191210191019
SwapopenSwapPageFromHome893311732115117
fetchAndDisplaySwapQuotes269226832706826942706
total2781271528213928102821
🌐 Dapp Page Load Benchmarks

Current Commit: fe77e35 | Date: 3/27/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±65ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 732ms (±59ms) 🟢 | historical mean value: 730ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 84ms (±10ms) 🟢 | historical mean value: 84ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 65ms 1.00s 1.32s 1.25s 1.32s
domContentLoaded 732ms 59ms 697ms 1.00s 932ms 1.00s
firstPaint 84ms 10ms 68ms 160ms 92ms 160ms
firstContentfulPaint 84ms 10ms 68ms 160ms 92ms 160ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -3.38 KiB (-0.05%)
  • ui: 9 Bytes (0%)
  • common: -7 Bytes (0%)

@cryptodev-2s cryptodev-2s enabled auto-merge March 27, 2026 11:43
@sonarqubecloud

Copy link
Copy Markdown

@cryptodev-2s cryptodev-2s added this pull request to the merge queue Mar 27, 2026
Merged via the queue into main with commit 951cb40 Mar 27, 2026
592 of 599 checks passed
@cryptodev-2s cryptodev-2s deleted the chore/remove-unused-error-reporting-service branch March 27, 2026 13:03
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2026
@metamaskbot metamaskbot added the release-13.26.0 Issue or pull request that will be included in release 13.26.0 label Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.26.0 Issue or pull request that will be included in release 13.26.0 size-M team-core-platform Core Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants