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

fix: custom tracing in production builds #27124

Merged
merged 26 commits into from
Sep 19, 2024

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Sep 13, 2024

Description

Update trace utilities to use Sentry functions via globalThis (populated by setupSentry.js) to avoid LavaMoat failures in production builds.

Also add trace E2E tests to automatically validate this functionality going forward.

Open in GitHub Codespaces

Related issues

Manual testing steps

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.

@matthewwalsh0 matthewwalsh0 added team-confirmations Push issues to confirmations team team-tiger Tiger team (for tech debt reduction + performance improvements) labels Sep 13, 2024
@matthewwalsh0 matthewwalsh0 requested review from a team and kumavis as code owners September 13, 2024 09:59
@matthewwalsh0 matthewwalsh0 changed the base branch from develop to fix/2555-sentry-sessions-production September 13, 2024 10:00
@matthewwalsh0 matthewwalsh0 added the DO-NOT-MERGE Pull requests that should not be merged label Sep 13, 2024
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@8d3e6ad). Learn more about missing BASE report.
Report is 9 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #27124   +/-   ##
==========================================
  Coverage           ?   70.08%           
==========================================
  Files              ?     1452           
  Lines              ?    50225           
  Branches           ?    14019           
==========================================
  Hits               ?    35200           
  Misses             ?    15025           
  Partials           ?        0           

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

@metamaskbot
Copy link
Collaborator

Builds ready [fd724af]
Page Load Metrics (1808 ± 85 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint22221771592444213
domContentLoaded15862156173016177
load16362345180817885
domInteractive1397362110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 44 Bytes (0.00%)

@matthewwalsh0 matthewwalsh0 marked this pull request as draft September 13, 2024 13:07
Copy link

socket-security bot commented Sep 14, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@matthewwalsh0 matthewwalsh0 marked this pull request as ready for review September 14, 2024 20:19
@matthewwalsh0
Copy link
Member Author

@SocketSecurity ignore-all

@metamaskbot
Copy link
Collaborator

Builds ready [ee6b05a]
Page Load Metrics (1574 ± 94 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint20722581395503241
domContentLoaded13872148156319593
load14232176157419694
domInteractive189432199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 3.63 KiB (0.05%)

@metamaskbot
Copy link
Collaborator

Builds ready [929782d]
Page Load Metrics (1712 ± 62 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21720291509537258
domContentLoaded14872017169512058
load14962030171213062
domInteractive136630126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 3.63 KiB (0.05%)

Copy link

sonarcloud bot commented Sep 18, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [41cf178]
Page Load Metrics (1647 ± 81 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21222141439532255
domContentLoaded14392027161613263
load14472221164716881
domInteractive13482684
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: -657 Bytes (-0.01%)

digiwand
digiwand previously approved these changes Sep 19, 2024
Co-authored-by: legobeat <[email protected]>
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
Contributor

@legobeat legobeat left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

sonarcloud bot commented Sep 19, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [5bac41e]
Page Load Metrics (1664 ± 87 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28123381523446214
domContentLoaded14012127164416579
load14102209166418287
domInteractive12162423215
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: -657 Bytes (-0.01%)

@matthewwalsh0 matthewwalsh0 merged commit 9c77f61 into develop Sep 19, 2024
77 checks passed
@matthewwalsh0 matthewwalsh0 deleted the fix/custom-tracing-production branch September 19, 2024 08:42
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2024
@metamaskbot metamaskbot added release-12.6.0 Issue or pull request that will be included in release 12.6.0 release-12.3.0 Issue or pull request that will be included in release 12.3.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 19, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-12.3.0 on PR. Adding release label release-12.3.0 on PR and removing other release labels(release-12.6.0), as PR was cherry-picked in branch 12.3.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-confirmations Push issues to confirmations team team-tiger Tiger team (for tech debt reduction + performance improvements)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants