Skip to content

Missing LCP/CLS measurements #7341

@efarem

Description

@efarem

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

  • Use a BrowserTracing idleTimeout large enough to allow for the page to fully load
  • Do not interact with the page
  • Inspect the network request to Sentry ingress
  • Find the event ID
  • Query the event in Sentry discovery with id:{event_id}
  • Notice the lack of LCP/CLS

Expected Result

Expected to see LCP/CLS measurements.

  • This line shows the report() callback being called for LCP.
  • This line shows the 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 if true is passed as the forceReport 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions