Skip to content

core Web Vitals: no INP/LCP attribution; SPA INP/CLS may be attributed to the next page #970

Open

Description

@unjica

Enhancement for @telemetry-tracker/core Web Vitals capture. Filed from a code reading of published core 1.5.3 (same packages/telemetry-core/src/web-vitals.ts on main / 1.6.0). Not verified in a browser.

What's missing

  1. No INP/LCP attribution. installWebVitals imports onCLS, onINP, onLCP, onTTFB from "web-vitals", not "web-vitals/attribution". buildWebVitalProperties only records metric, value, rating, path, id, navigation_type, and connection_type. There is no element, event target, or other attribution payload.

  2. Vitals are not grouped by framework route. path is raw window.location.pathname at report time, not a route pattern.

  3. Possible SPA mis-attribution (unverified). path is read in the report callback via readPagePath() (window.location.pathname now), not when the metric started. onINP / onCLS (and sometimes onLCP) typically fire when the metric is finalized, often on page hide or after a client-side navigation. In an SPA, INP or CLS from the previous page may be logged against the next page's path.

Notes

Activity

  1. added
    enhancement
    sdk
    performance
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementperformancesdk

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions