-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Missing LCP/CLS measurements #7341
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
Comments
I realise that the web-vitals documentation suggests that I'd be happy to fix this myself as it'd help my team, any chance that someone from Sentry could take a look and guide me on a potential fix? |
Hey @efarem thanks for writing in! This is simply a case where your transaction ends before LCP fires. To fix this, we recommend bumping the |
Hi @AbhiPrasad, I have idleTimeout set to 5000, LCP is never reported unless the user interacts |
Gotcha - maybe we need to record LCP on transaction finish then. Let me open a PR. |
Yeah let's record LCP on transaction finish. This should hopefully help improve the number of LCP measurements here! |
Thanks, this also happens with CLS. You only see CLS measurements when |
Good point, will address this with the PR as well! |
Will cut a release with this change today! |
@AbhiPrasad is there a fix required also for sentry/react? |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g.
bundle.tracing.min.js
) in your SDK setup.@sentry/nextjs
SDK Version
7.40.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
idleTimeout
large enough to allow for the page to fully loadid:{event_id}
Expected Result
Expected to see LCP/CLS measurements.
report()
callback being called for LCP.report()
callback being called for CLS.Notice both of the above trigger the report function with no arguments,
report()
is a result of bindReporter and will only ever record a measurement iftrue
is passed as theforceReport
argument.This has been present for LCP since the
_reportAllChanges
option was removed here.CLS appears to only report onHidden.
Actual Result
No LCP or CLS measurements are ever recorded.
The text was updated successfully, but these errors were encountered: