-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add types of hidden properties to Sentry data (#20457)
* Add types of hidden properties to Sentry data The masked wallet state object sent to Sentry has been updated to include the type of each property omitted from the mask. This lets us at least see the full state shape, making it easier to see when errors are caused by invalid state. Relates to #20449 * Remove inconsistent state snapshot properties The state snapshot tests have been updated to exclude properties that were shown to differ between runs.
- Loading branch information
Showing
4 changed files
with
211 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
63 changes: 55 additions & 8 deletions
63
test/e2e/tests/state-snapshots/errors-after-init-opt-in-background-state.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,81 @@ | ||
{ | ||
"AccountTracker": { "currentBlockGasLimit": "0x1c9c380" }, | ||
"AccountTracker": { "accounts": "object" }, | ||
"AppStateController": { | ||
"connectedStatusPopoverHasBeenShown": true, | ||
"defaultHomeActiveTabName": null | ||
"defaultHomeActiveTabName": null, | ||
"browserEnvironment": "object", | ||
"popupGasPollTokens": "object", | ||
"notificationGasPollTokens": "object", | ||
"fullScreenGasPollTokens": "object", | ||
"recoveryPhraseReminderHasBeenShown": "boolean", | ||
"recoveryPhraseReminderLastShown": "number", | ||
"outdatedBrowserWarningLastShown": "number", | ||
"nftsDetectionNoticeDismissed": "boolean", | ||
"showTestnetMessageInDropdown": "boolean", | ||
"showBetaHeader": "boolean", | ||
"showProductTour": "boolean", | ||
"trezorModel": "object", | ||
"nftsDropdownState": "object", | ||
"termsOfUseLastAgreed": "number", | ||
"qrHardware": "object", | ||
"usedNetworks": "object", | ||
"snapsInstallPrivacyWarningShown": "boolean", | ||
"serviceWorkerLastActiveTime": "number" | ||
}, | ||
"ApprovalController": "object", | ||
"CachedBalancesController": "object", | ||
"CurrencyController": { | ||
"conversionDate": "number", | ||
"conversionRate": 1700, | ||
"nativeCurrency": "ETH", | ||
"currentCurrency": "usd" | ||
"currentCurrency": "usd", | ||
"pendingCurrentCurrency": "object", | ||
"pendingNativeCurrency": "object", | ||
"usdConversionRate": "number" | ||
}, | ||
"DecryptMessageController": { | ||
"unapprovedDecryptMsgs": "object", | ||
"unapprovedDecryptMsgCount": 0 | ||
}, | ||
"DecryptMessageController": { "unapprovedDecryptMsgCount": 0 }, | ||
"EncryptionPublicKeyController": { | ||
"unapprovedEncryptionPublicKeyMsgs": "object", | ||
"unapprovedEncryptionPublicKeyMsgCount": 0 | ||
}, | ||
"EnsController": "object", | ||
"MetaMetricsController": { | ||
"participateInMetaMetrics": true, | ||
"metaMetricsId": "fake-metrics-id" | ||
"metaMetricsId": "fake-metrics-id", | ||
"eventsBeforeMetricsOptIn": "object", | ||
"traits": "object", | ||
"fragments": "object", | ||
"segmentApiCalls": "object", | ||
"previousUserTraits": "object" | ||
}, | ||
"NetworkController": { | ||
"selectedNetworkClientId": "string", | ||
"networkId": "1337", | ||
"providerConfig": { | ||
"chainId": "string", | ||
"nickname": "Localhost 8545", | ||
"rpcPrefs": "object", | ||
"rpcUrl": "string", | ||
"ticker": "ETH", | ||
"type": "rpc" | ||
} | ||
"type": "rpc", | ||
"id": "string" | ||
}, | ||
"networksMetadata": "object", | ||
"networkConfigurations": "object" | ||
}, | ||
"SignatureController": { | ||
"unapprovedMsgs": "object", | ||
"unapprovedPersonalMsgs": "object", | ||
"unapprovedTypedMessages": "object", | ||
"unapprovedMsgCount": 0, | ||
"unapprovedPersonalMsgCount": 0, | ||
"unapprovedTypedMessagesCount": 0 | ||
} | ||
}, | ||
"SwapsController": "object", | ||
"TokenRatesController": "object", | ||
"TokensController": "object", | ||
"TxController": "object" | ||
} |
This file contains 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