Skip to content

INP Data does not seem to be sent #13666

@amenk

Description

@amenk

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/browser

SDK Version

8.30.0

Framework Version

Magento 2

Link to Sentry event

No response

Reproduction Example/SDK Setup

<script>
    function heavyComputation() {
        let total = 0;
        for (let i = 0; i < 1e10; i++) {
            total += i;
        }
        return total;
    }

    document.getElementById('testButton').addEventListener('click', () => {
        window.alert(heavyComputation());
    });
</script>
<script src="https://polyfill-fastly.io/v2/polyfill.min.js?features=Promise" crossorigin></script>
<script src="https://browser.sentry-cdn.com/8.30.0/bundle.tracing.min.js" crossorigin="anonymous"></script>
<script>
if (typeof Sentry !== 'undefined') {
    Sentry.init({
        dsn: 'https://[email protected]/5',
        release: '1726060779',
        environment: 'local',
        integrations: [
                        Sentry.browserTracingIntegration({
                enableInp: true,
            }),
                                ],
                tracesSampleRate: 1,
                        ignoreErrors: null,
            });
}
</script>

In the self hosted instance I had to activate the feature flags "organizations:insights-entry-points", "organizations:insights-initial-modules" and "organizations:insights-addon-modules" to see the web vitals tab.

Other web vitals are showing.
Chrome Version 128.0.6613.84 (Official Build) (64-bit)

Am I triggering the INP wrong?
Is the initialization wrong?

Steps to Reproduce

  1. Click the test button
  2. Check sentry

Expected Result

INP data is visible; INP Attribution data is visible

Actual Result

  1. No data
    Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: browserIssues related to the Sentry Browser SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions