sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

LCP element span does not correlate with LCP vertical mark in waterfall

Open serglom21 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
  • [x] I have reviewed the documentation https://docs.sentry.io/
  • [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/remix

SDK Version

8.25.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Customer Case

Sentry reports the LCP value for a page load and the LCP element that contributed to the value. However, the LCP value for the pageload itself does not match with the end of the span of the LCP element in the waterfall

Expected Result

I would expect the LCP element span to finish at the same timeframe as the reported value of the LCP vital for the page load

Actual Result

The LCP element span finishes way before the time that Sentry reports as the LCP for the pageload

Image

Image

serglom21 avatar Aug 16 '24 15:08 serglom21

Backlogging to triage after hackweek

Lms24 avatar Aug 19 '24 09:08 Lms24

This might be related to some weird LCP/FCP/FP value normalization code we have in the SDK. I will investigate if we can remove this logic as it's massively screwing up web vital accuracy.

Lms24 avatar Aug 28 '24 07:08 Lms24

@serglom21 do you have an update if after updating to a more recent SDK version the problem still persists?

Lms24 avatar Dec 10 '24 14:12 Lms24

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Jan 01 '25 08:01 getsantry[bot]