-
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.
Browse files
Browse the repository at this point in the history
This is a cherry-pick of #26332 and #26636 for v12.2.0, with the TransactionController update removed from #26332. Follow these steps to manually test: * Create a personal Sentry account (if you don't have one already) and create a `metamask` project * Set the DSN of this project as `SENTRY_DSN_DEV` in your `.metamaskrc` file * Create a new dev build * Install the build and go through onboarding, ensuring that you opt-in to metrics * Make a few page navigations You should see the UI traces in the Sentry performance dashboard on your personal account. This was cherry-picked to get the benefits described in #26636 (#26332 was partially included only out of necessity). The original description of #26636 is below: ## **Description** Record a `UI Startup` Sentry trace to monitor startup times of the UI pages. In addition: - Support use of `trace` utility function in non-asynchronous contexts. - Remove `getMetaMetricsEnabled` check as this is already done in the custom transport before submission. - Generate default ID if omitted when starting and ending traces. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26636?quickstart=1) ## **Related issues** Fixes: #25724 ## **Manual testing steps** ## **Screenshots/Recordings** ### **Before** ### **After** <img width="966" alt="Sentry" src="https://github.com/user-attachments/assets/355e835c-24c0-42e6-ab06-4b549c2c7973"> <img width="705" alt="Console" src="https://github.com/user-attachments/assets/211c5445-ee05-4e5f-8de5-e60e8e3133d3"> ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **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. --------- Co-authored-by: Matthew Walsh <[email protected]>
- Loading branch information
1 parent
a60dbcb
commit 7cc4af7
Showing
7 changed files
with
460 additions
and
121 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
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
Oops, something went wrong.