-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Some web vitals are missing #14201
Comments
Hey @RexSkz thanks for writing in! The link you posted only links to a discover link for me, so I don't know which specific transaction to inspect. Do you by any chance have a publicly accessible route in your app that I could access?
That's a good lead! Without having access to a route where this would happen, I can't say for sure but I have an idea: When you make a react router navigation, the SDK probably cancels the intial pageload transaction to which the web vital measurements would get attached to. It then starts a new navigation transaction for the RR navigation. However, we only attach web vital measurements to the pageload transaction, so they're lost. As I said, this is only a theory but if you turn on Also, I noticed you're using the browser SDK CDN bundles in a React SPA app(?). Is there a specific reason for using the bundle over our NPM packages? We have a dedicated |
@Lms24 Thanks for your detailed explanation! Our platform may need a paid account to reproduce the issue. I can't provide a public link for you, but I'll investigate according to your theory and share as much information as possible here. I've done some research before according to Sentry's support team. I set The reason why we use CDN is complicated, but more like a historical reason. We're migrating from CDN to NPM now. |
Thanks for the information! If you find out more let me know! I'll link to some relevant code pieces for more context.
(As you can see, we don't always start a navigation span on every history change but from looking at it, two subsequent navigations might slip through here and in fact start a navigation span)
Note that we explicitly check for the span |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
Sentry Browser CDN bundle
SDK Version
8.37.0
Framework Version
React 17.0.2
Link to Sentry event
https://moego-ey.sentry.io/discover/homepage/?dataset=transactions&field=title&field=project&field=timestamp&field=measurements.fcp&field=measurements.cls&field=measurements.lcp&field=measurements.ttfb&field=measurements.fp&name=All%20Errors&project=4507922008702976&query=transaction.op%3Apageload&queryDataset=transaction-like&sort=-timestamp&statsPeriod=7d&yAxis=count%28%29
Reproduction Example/SDK Setup
Steps to Reproduce
Just open the page. But I noticed a scenario that may trigger the problem: our project will trigger a
react-router
change to add 2 queries immediately in theApp
'suseEffect
:Expected Result
FCP, LCP, and TTFB should be displayed correctly on the Web Vitals page.
Actual Result
They are missing, only an INP metric is displayed.
After some investigation, FCP, LCP and TTFB were generated, but for some reason, they aren't attached to the
pageload
event, instead of anavigation
event.The text was updated successfully, but these errors were encountered: