Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sentry error logging to account syncing erroneous situations #29692

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Jan 14, 2025

Description

This PR adds Sentry logging for all account syncing erroneous situations calls. It also attaches context so we know more about these situations.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

Copy link
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.

Copy link

socket-security bot commented Jan 14, 2025

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None +1 1.06 MB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None +2 1.09 MB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 1.49 MB metamaskbot

View full report↗︎

@mathieuartu
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [aa68dd4]
Page Load Metrics (1784 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint37120471720334160
domContentLoaded14711982175511857
load15422036178412359
domInteractive289144199
backgroundConnect989322512
firstReactRender1698462914
getState565192010
initialActions01000
loadScripts10301547131610852
setupStore686162110
uiStartup18162580206317785
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 41 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 33.49 KiB (0.40%)

@mathieuartu mathieuartu marked this pull request as ready for review January 14, 2025 12:40
@mathieuartu mathieuartu requested review from a team as code owners January 14, 2025 12:40
@@ -830,7 +830,7 @@
"@metamask/keyring-controller>@metamask/eth-sig-util>@metamask/abi-utils": {
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/keyring-controller>@metamask/eth-sig-util>@metamask/abi-utils>@metamask/utils": true
"@metamask/keyring-controller>@metamask/utils": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any changes here, seems to be a lavamoat policy re-ordering.

Comment on lines +1380 to +1387
"@metamask/profile-sync-controller>@metamask/keyring-api": {
"packages": {
"@metamask/keyring-api>@metamask/keyring-utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true,
"@metamask/keyring-api>bech32": true
}
},
Copy link
Contributor

@Prithpal-Sooriya Prithpal-Sooriya Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version of this controller updates the keyring API (v 13.0.0), which includes these underlying changes.

"@metamask/keyring-api": "npm:^12.0.0"
"@metamask/keyring-controller": "npm:^19.0.2"
"@metamask/base-controller": "npm:^7.1.1"
"@metamask/keyring-api": "npm:^13.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump of keyring API has prompted an update to the lavamoat policies.

@mathieuartu mathieuartu added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit bbe8143 Jan 14, 2025
101 checks passed
@mathieuartu mathieuartu deleted the feat/add-account-sync-error-logging branch January 14, 2025 14:39
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2025
@metamaskbot metamaskbot added the release-12.11.0 Issue or pull request that will be included in release 12.11.0 label Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.11.0 Issue or pull request that will be included in release 12.11.0 team-identity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants