Skip to content

fix: Capture Segment errors during initialization#25253

Merged
Gudahtt merged 2 commits intodevelopfrom
catch-segment-initialization-errors
Jun 12, 2024
Merged

fix: Capture Segment errors during initialization#25253
Gudahtt merged 2 commits intodevelopfrom
catch-segment-initialization-errors

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Jun 12, 2024

Description

We were submitting Segment events in the MetaMetrics constructor without catching errors. This was the sole place where we failed to catch errors resulting from Segment calls.

Open in GitHub Codespaces

Related issues

Mitigates #25244

Manual testing steps

See this comment for details: #25254 (comment)

Screenshots/Recordings

N./A

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.

We were submitting Segment events in the MetaMetrics constructor
without cathing errors. This was the sole place where we failed to
catch errors resulting from Segment calls.

Fixes #25244
@Gudahtt Gudahtt added the team-extension-platform Extension Platform team label Jun 12, 2024
@Gudahtt Gudahtt marked this pull request as ready for review June 12, 2024 12:04
@Gudahtt Gudahtt requested a review from a team as a code owner June 12, 2024 12:04
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.64%. Comparing base (9a5aeae) to head (ac46850).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25253      +/-   ##
===========================================
- Coverage    65.64%   65.64%   -0.00%     
===========================================
  Files         1367     1367              
  Lines        54257    54259       +2     
  Branches     14189    14189              
===========================================
  Hits         35616    35616              
- Misses       18641    18643       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Gudahtt
Copy link
Copy Markdown
Member Author

Gudahtt commented Jun 12, 2024

We will continue to investigate the linked bug and attempt reproducing it and addressing the root problem, but I will merge this PR first in the meantime to mitigate the issue.

@Gudahtt Gudahtt merged commit 32af889 into develop Jun 12, 2024
@Gudahtt Gudahtt deleted the catch-segment-initialization-errors branch June 12, 2024 12:38
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 12, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ac46850]
Page Load Metrics (49 ± 5 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7011084105
domContentLoaded9161121
load417449105
domInteractive9161121
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 40 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@Gudahtt
Copy link
Copy Markdown
Member Author

Gudahtt commented Jun 12, 2024

See this comment for more details on manual testing: #25254 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants