Skip to content

Conversation

@ieow
Copy link
Contributor

@ieow ieow commented Jun 16, 2025

Description

This PR adds Sentry performance monitoring to track user onboarding flows end-to-end. We're instrumenting all onboarding paths (social login, SRP creation, import) to gain visibility into performance bottlenecks and error rates.

The implementation uses buffered tracing to handle cases where metrics consent hasn't been given yet - traces are queued and sent once the user opts in to metrics collection.

New traces being added (click to expand)

User Journey Traces:

  • Onboarding - Overall Journey - Parent trace for entire onboarding flow
  • Onboarding - New SRP Create Wallet
  • Onboarding - Existing SRP Import

Operation Traces:

  • Onboarding - Password Setup Attempt
  • Onboarding - Password Login Attempt
  • Onboarding - Reset Password
  • Onboarding - Create Key and Backup SRP
  • Onboarding - Add SRP
  • Onboarding - Fetch SRPs

Error Traces:

  • Onboarding - Social Login Error
  • Onboarding - Password Setup Error
  • Onboarding - Password Login Error
  • Onboarding - Reset Password Error
  • Onboarding - Create Key and Backup SRP Error
  • Onboarding - Add SRP Error
  • Onboarding - Fetch SRPs Error

Port from #16232

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.

smgv and others added 30 commits May 30, 2025 15:51
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**
Update New SRP onboarding flow as per figma design

https://www.figma.com/design/pViOUcmjwhEzFsdrwknpNc/Onboarding-redesign?node-id=434-55200&t=wmEoQSF9g9lFtkwp-0

This PR is part 2 of 7 for the new SRP ui update

This PR covers

- new ui for welcome page

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

## **Related issues**

Fixes:

## **Manual testing steps**

1. After opening app, agree to terms
2. Come to the Let's get started page

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

https://github.com/user-attachments/assets/2e37d1a2-3587-42d5-b90a-9965b5168ed2


## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.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-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] 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: Chaitanya Potti <chaitanya.potti@gmail.com>
Co-authored-by: smgv <gpatra1996@gmail.com>
Co-authored-by: hieu-w <maestrokoder@gmail.com>
Co-authored-by: hieu-w <hieu@tor.us>
Base automatically changed from feat/delayed-optin to main June 17, 2025 05:30
@ieow ieow marked this pull request as ready for review June 18, 2025 06:32
@ieow ieow requested review from a team as code owners June 18, 2025 06:32
@github-actions
Copy link
Contributor

github-actions bot commented Jun 18, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 6093511
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8537fb46-6eb4-4775-aaef-92be08ec3ed1

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@chaitanyapotti chaitanyapotti changed the title Feat/new-srp-sentry feat: new-srp-sentry Jun 18, 2025
@chaitanyapotti chaitanyapotti added the No QA Needed Apply this label when your PR does not need any QA effort. label Jun 18, 2025
@sonarqubecloud
Copy link

@ieow
Copy link
Contributor Author

ieow commented Jun 20, 2025

close in favor of #16232

@ieow ieow closed this Jun 20, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2025
@ieow ieow deleted the feat/new-srp-sentry branch August 18, 2025 05:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-metrics area-onboarding No QA Needed Apply this label when your PR does not need any QA effort. team-onboarding Onboarding team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants