Skip to content
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

Web vitals board is empty, even if vitals seems to be registered in metrics #12039

Open
3 tasks done
pawelgalazka opened this issue May 15, 2024 · 7 comments
Open
3 tasks done

Comments

@pawelgalazka
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/remix

SDK Version

7.114.0

Framework Version

Remix 2.8.1

Link to Sentry event

https://pagezero.sentry.io/performance/browser/pageloads/?project=4507225764855808&statsPeriod=14d

SDK Setup

import * as Sentry from "@sentry/remix"


Sentry.init({
  dsn: appConfig.sentryDsn,
  environment: appConfig.appEnv,
  debug: appConfig.appEnv !== "production",
  integrations: [
    Sentry.browserTracingIntegration({
      useEffect,
      useLocation,
      useMatches,
    }),
    // Replay is only available in the client
    Sentry.replayIntegration(),
  ],

  // Set tracesSampleRate to 1.0 to capture 100%
  // of transactions for performance monitoring.
  // We recommend adjusting this value in production
  tracesSampleRate: 1.0,

  // Capture Replay for 10% of all sessions,
  // plus for 100% of sessions with an error
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1.0,
})

Steps to Reproduce

  1. Setup @sentry/remix according to the instructions https://docs.sentry.io/platforms/javascript/guides/remix/manual-setup/#installation
  2. Visit the page which has Sentry setup
  3. Look up web vitals board in Sentry dashbaord

Expected Result

See items in web vitals performance dashboard

Actual Result

Web vitals performance dashboard is empty, there is no data:

Screenshot 2024-05-15 at 6 50 11 pm

Interestingly when I go to "metric" board, I can see LCP, CLS, INP being registered:

Screenshot 2024-05-15 at 6 51 14 pm

So it seems web vitals are gathered but somehow they are not displayed on web vitals dashboard.

@edwardgou-sentry
Copy link

Hi @pawelgalazka , thanks for reporting!

Pageload Web Vitals only show up if your pageload samples have a sufficient amount of data.
For example, if you are on a Chrome browser, your pageload must report at least LCP, FCP, and TTFB to be considered good enough data quality to be scored.

You can find the list of required Web Vitals by Browser here:
https://docs.sentry.io/product/performance/web-vitals/web-vitals-concepts/#browser-support

It looks like you have some LCP metrics reported, but it's possible you may be missing other web vitals.
Can you check if you have any single pageload samples containing LCP, FCP, and TTFB together? (You should be able to check this through discover or metrics)

@pawelgalazka
Copy link
Author

Thanks @edwardgou-sentry

Makes sense 👍🏻 I suspected that could be the case, however I couldn't find anything in the docs about it. I was checking https://docs.sentry.io/platforms/javascript/guides/remix/performance/

It could be worth making this case more explicit in the docs.

@Lms24
Copy link
Member

Lms24 commented May 21, 2024

@edwardgou-sentry I took a quick look at the linked sentry project and found multiple pageload transactions with reported web vitals. Any chance that there's a problem with the Web Vitals module?

@edwardgou-sentry
Copy link

@edwardgou-sentry I took a quick look at the linked sentry project and found multiple pageload transactions with reported web vitals. Any chance that there's a problem with the Web Vitals module?

@Lms24 Took a peek into the linked project, it looks like there are some pageload transactions, but none of them seem to have any cls, which is required to calculate performance score. I'll avoid posting screenshots since its a customer account, but you can filter by has:measurements.cls to verify this.

@pawelgalazka It might be worth updating your sdk to the latest 7.. version to see if that helps. There could be an improvement for cls capture rate in the newer versions.

@vvvhung
Copy link

vvvhung commented May 28, 2024

In my case, the Web Vitals Page has only INP score and it shows no data for LCP, FCP, CLS, TTFB. It shows only<< unparameterized >> in the list of page there. But I can find Web Vital for the path / from the Performance -> Frontend tab-> Transaction table. I'm using "@sentry/tracing": "^7.114.0" and "@sentry/vue": "^8.2.1".

@Lms24
Copy link
Member

Lms24 commented May 28, 2024

@vvvhung

I'm using "@sentry/tracing": "^7.114.0" and "@sentry/vue": "^8.2.1".

You don't need to use @sentry/tracing at all anymore. Just use @sentry/vue as described here. Also, all @sentry/* SDK packages have to be aligned on the same version.

@vvvhung
Copy link

vvvhung commented May 28, 2024

@Lms24 thanks, you are correct, I removed @sentry/tracing and the Web Vitals Page now looks ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Development

No branches or pull requests

5 participants