Skip to content

Remove collection of FID web vital #16560

Open
@Lms24

Description

@Lms24

Problem Statement

In v5 of the web-vitals library, the already deprecated INP metric was finally removed. This was done because FID has been fully replaced by INP, meaning it is no longer relevant for users to track or optimize for it.

Our browser SDKs were updated to web-vitals 5.0.2 in #16492 but we decided to still keep FID for now in our vendored-in version of the library. This was mainly done to avoid disrupting anyone who currently depends in FID (e.g. via Sentry alerts).

Solution Brainstorm

We will FID from the SDK to stop collecting outdated information as well as to save some much needed bundle size (e.g. the v5 update increased the bundle size quite a bit).

Steps for removal

  • check with performance team on in-product FID dependencies (=> none, other than alerts)
  • Remove FID measurement from root spans
  • Remove FID-related code from vendored web-vitals

Given the dependence on alerts, we consider this a significant behaviour-breaking change and will therefore only do this in a major version of the SDK.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions