Skip to content

feat(performance): Update webvitals module to exclude unparameterized transactions#71923

Merged
edwardgou-sentry merged 3 commits intomasterfrom
egou/feat/webvitals-exclude-unparameterized-transactions
Jun 4, 2024
Merged

feat(performance): Update webvitals module to exclude unparameterized transactions#71923
edwardgou-sentry merged 3 commits intomasterfrom
egou/feat/webvitals-exclude-unparameterized-transactions

Conversation

@edwardgou-sentry
Copy link
Copy Markdown
Contributor

@edwardgou-sentry edwardgou-sentry commented Jun 3, 2024

Refactors Web Vitals base query as a constant in DEFAULT_QUERY_FILTER
Filters out invalid pageloads and interactions via !transaction:"<< unparameterized >>"
Deletes a couple of query hooks no longer being used.

Fixes #71435

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 3, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.92%. Comparing base (b59898e) to head (4b27aa6).
Report is 77 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #71923      +/-   ##
==========================================
+ Coverage   77.91%   77.92%   +0.01%     
==========================================
  Files        6563     6567       +4     
  Lines      292281   292385     +104     
  Branches    50488    50510      +22     
==========================================
+ Hits       227733   227855     +122     
+ Misses      58299    58282      -17     
+ Partials     6249     6248       -1     
Files Coverage Δ
...ormance/browser/webVitals/pagePerformanceTable.tsx 59.03% <ø> (ø)
...pp/views/performance/browser/webVitals/settings.ts 100.00% <100.00%> (ø)
...awWebVitalsQueries/useProjectRawWebVitalsQuery.tsx 83.33% <ø> (ø)
...es/useProjectRawWebVitalsValuesTimeseriesQuery.tsx 76.47% <ø> (ø)
...redScoreQueries/useProjectWebVitalsScoresQuery.tsx 83.33% <ø> (ø)
...eries/useProjectWebVitalsScoresTimeseriesQuery.tsx 68.42% <ø> (ø)
...coreQueries/useTransactionWebVitalsScoresQuery.tsx 75.00% <ø> (ø)

... and 99 files with indirect coverage changes

@edwardgou-sentry edwardgou-sentry marked this pull request as ready for review June 3, 2024 18:53
@edwardgou-sentry edwardgou-sentry requested a review from a team June 3, 2024 18:53
Copy link
Copy Markdown
Contributor

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

IMO needs a test to make sure this doesn't regress

@edwardgou-sentry edwardgou-sentry merged commit c80ae41 into master Jun 4, 2024
@edwardgou-sentry edwardgou-sentry deleted the egou/feat/webvitals-exclude-unparameterized-transactions branch June 4, 2024 16:11
@sentry
Copy link
Copy Markdown
Contributor

sentry bot commented Jun 6, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: useNavigate() may be used only in the context of a component. useNavigate(useNavigate.tsx) View Issue
  • ‼️ Error: useNavigate() may be used only in the context of a component. useNavigate(useNavigate.tsx) View Issue
  • ‼️ Error: useNavigate() may be used only in the context of a component. useNavigate(useNavigate.tsx) View Issue
  • ‼️ Error: useNavigate() may be used only in the context of a component. useNavigate(useNavigate.tsx) View Issue
  • ‼️ Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside ... render(reactTestingLibrary.tsx) View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<< unparameterized >> page in web vitals that only has INP

2 participants