Description
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.