1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Mark Stacey 507c2cb475
Capture Sentry errors prior to initialization (#20265)
* Capture Sentry errors prior to initialization

Sentry errors captured before/during the wallet initialization are
currently not captured because we don't have the controller state yet
to determine whether the user has consented.

The Sentry setup has been updated to check the persisted state for
whether the user has consented, as a fallback in case the controller
state hasn't been initialized yet. This ensures that we capture errors
during initialization if the user has opted in.

* Always await async check for whether the user has opted in

* Remove unused import

* Update JSDoc return type

* Remove unused driver method

* Fix metametrics controller unit tests

* Fix e2e tests

* Fix e2e test on Firefox

* Start session upon install rather than toggle
2023-07-31 18:49:32 -02:30
..
account-import-strategies
constants
controllers Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
lib Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
migrations
platforms
app-init.js
background.js Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
contentscript.js
detect-multiple-instances.js
detect-multiple-instances.test.js
disable-console.js
first-time-state.js
init-globals.js
inpage.js
lockdown-more.js
lockdown-run.js
metamask-controller.actions.test.js
metamask-controller.js Use getKeyringsByType from core KeyringController (#20210) 2023-07-31 16:45:20 +01:00
metamask-controller.test.js Use getKeyringsByType from core KeyringController (#20210) 2023-07-31 16:45:20 +01:00
mmi-keyring-builder-factory.js
sentry-install.js Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
translate.test.ts
translate.ts
ui.js Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
use-snow.js