mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
e8b33fb7c8
The state snapshot that was attached to Sentry errors was removed recently in #8794 because it had become too large. The snapshot has now been restored and reduced in size. A utility function has been written to reduce the state object to just the requested properties. This seemed safer than filtering out state that is known to be large or to contain identifiable information. This is not a great solution, as now knowledge about the state shape resides in this large constant, but it will suffice for now. I am hopeful that we can decorate our controllers with this metadata in the future instead, as part of the upcoming background controller refactor. A separate `getSentryState` global function has been added to get the reduced state, so that the old `getCleanAppState` function that we used to use could remain unchanged. It's still useful to get that full state copy while debugging, and in e2e tests. |
||
---|---|---|
.. | ||
ens-ipfs | ||
migrator | ||
account-tracker.js | ||
auto-reload.js | ||
backend-metametrics.js | ||
buy-eth-url.js | ||
cleanErrorStack.js | ||
ComposableObservableStore.js | ||
createLoggerMiddleware.js | ||
createOnboardingMiddleware.js | ||
createOriginMiddleware.js | ||
createStreamSink.js | ||
createTabIdMiddleware.js | ||
decrypt-message-manager.js | ||
encryption-public-key-manager.js | ||
enums.js | ||
extractEthjsErrorMessage.js | ||
fetch-with-timeout.js | ||
freezeGlobals.js | ||
get-first-preferred-lang-code.js | ||
getObjStructure.js | ||
local-store.js | ||
message-manager.js | ||
network-store.js | ||
nodeify.js | ||
notification-manager.js | ||
personal-message-manager.js | ||
random-id.js | ||
seed-phrase-verifier.js | ||
select-chain-id.js | ||
setupFetchDebugging.js | ||
setupSentry.js | ||
stream-utils.js | ||
typed-message-manager.js | ||
util.js |