Skip to content

chore(sentry): enable performance monitoring#24951

Merged
danjm merged 10 commits intodevelopfrom
feat/sentry-performance-monitoring-2
Jun 5, 2024
Merged

chore(sentry): enable performance monitoring#24951
danjm merged 10 commits intodevelopfrom
feat/sentry-performance-monitoring-2

Conversation

@gauthierpetetin
Copy link
Copy Markdown
Contributor

@gauthierpetetin gauthierpetetin commented May 31, 2024

Description

Replaces this PR: #22092
The PR is the same but with develop branch as origin instead of fix/sentry-sessions branch.

Open in GitHub Codespaces

Related issues

  • None

Manual testing steps

See this PR: #22092

Screenshots/Recordings

See this PR: #22092

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

Flaky tests issues do not match our issues templates. Their description just includes a link to cricleci.
Setting a value for tracesSampleRate enables performance monitoring in Sentry. Once performance monitoring is enabled, transactions are sent to Sentry every time a user loads a page or navigates within the app. Since the amount of traffic the app gets is important, this means a lot of transactions are sent. By setting tracesSampleRate to a value lower than 1.0, we reduce the volume of transactions to a more reasonable amount. Given tracesSampleRate is currently set to 0.04 for Mobile and given that the amount of MAU is more than 3x more important for Extension, we can set tracesSampleRate to 0.01 for Extension in order not to exceed our account limits.
@gauthierpetetin gauthierpetetin added area-sentry Issue from Sentry team-extension-platform Extension Platform team labels May 31, 2024
@gauthierpetetin gauthierpetetin requested a review from a team as a code owner May 31, 2024 18:32
@github-actions
Copy link
Copy Markdown
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.

@gauthierpetetin gauthierpetetin changed the title Feat/sentry performance monitoring 2 chore(sentry): enable performance monitoring May 31, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.68%. Comparing base (3c4e17b) to head (de7302b).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24951   +/-   ##
========================================
  Coverage    65.68%   65.68%           
========================================
  Files         1371     1371           
  Lines        54431    54431           
  Branches     14166    14166           
========================================
  Hits         35753    35753           
  Misses       18678    18678           

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

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [60be631]
Page Load Metrics (114 ± 138 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6811480115
domContentLoaded9121010
load411363114286138
domInteractive9121010

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [515439c]
Page Load Metrics (47 ± 4 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint671047994
domContentLoaded8161021
load40764794
domInteractive8161021
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 55 Bytes (0.00%)

Copy link
Copy Markdown
Contributor

@chloeYue chloeYue left a comment

Choose a reason for hiding this comment

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

LGTM

@danjm danjm merged commit 0d839b1 into develop Jun 5, 2024
@danjm danjm deleted the feat/sentry-performance-monitoring-2 branch June 5, 2024 15:41
@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [de7302b]
Page Load Metrics (119 ± 140 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint67162882010
domContentLoaded9161121
load421388119291140
domInteractive9161121
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 55 Bytes (0.00%)

@gauthierpetetin gauthierpetetin added the release-12.0.0 Issue or pull request that will be included in release 12.0.0 label Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-sentry Issue from Sentry release-12.0.0 Issue or pull request that will be included in release 12.0.0 team-extension-platform Extension Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants