sentry-javascript: INP not being collected in SvelteKit project

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

7.108.0

Framework Version

SvelteKit 2.5.4

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: __DSN__,
  tracesSampleRate: 1.0,
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1.0,
  integrations: [
    replayIntegration({ maskAllInputs: false, maskAllText: false }),
    Sentry.browserTracingIntegration({
      enableInp: true
    })
  ],
  environment: PUBLIC_SENTRY_ENV ?? 'unknown'
});

Steps to Reproduce

  1. Set enableInp option to true
  2. Visited some pages

Expected Result

INP data to be reported in the dashboard

Actual Result

No INP data (been enabled for 6 days now) image

About this issue

  • Original URL
  • State: closed
  • Created 3 months ago
  • Reactions: 1
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Yes, I think so. I will try after 15.04. with the new 24.4 update and report results back

@Lms24 Yes, I see outgoing INP spans as the following:

{"sent_at":"2024-04-05T15:50:24.231Z","dsn":"...."}
{"type":"span"}
{"data":{"sentry.origin":"manual","sentry.op":"ui.interaction.click","release":"...","environment":"production","transaction":"/customers","user":"..."},"description":"ul.navbar-nav.me-auto > li.nav-item > a.nav-link","op":"ui.interaction.click","span_id":"b3b9924ef06b6aee","start_timestamp":1712332212.5856001,"timestamp":1712332212.6256,"trace_id":"03a901d137214997b9877f75a3cf7145","origin":"manual","exclusive_time":40,"measurements":{"inp":{"value":40,"unit":"millisecond"}}}

The envelope is only send after following two steps have been performed:

  • Any click within the application
  • Browers is minimized or tab switched

So far I recognized only one INP envelope

I have opted into organizations:standalone-span-ingestion but so far I do not have any data in the sentry-portal. I have 24.3.0 installed. So I will wait for the next update and keep you updated