You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We didn't support some features like BFCache and multiple reports
We didn't need all the metrics instrumentation exposed by that library
Today this looks very different. With #11185 we basically rely on every single metric that the library exposes, and with sentry metrics we can potentially flush these metrics outside of a transaction (so BFCache support and multiple reports get vastly more useful).
Today we frequently fall behind on updating our vendored fork, which means our users don't get bug fixes or improvements in a timely manner.
It's also costing us to vendor this in - we maintain a slightly different implementation which means touching this code gets very complicated, very quickly. it also means adding support for things like attributions is very difficult.
I propose we stop vendoring web vitals entirely, and just rely on it as an npm dependency OR change the nature of the fork to mean we maintain @sentry-internal/web-vitals. Given there are no notable changes that we need to make to the vendored lib, I think the first option is the best, but open for discussion.
As of #23070 we no longer vendor the web vitals and depend on it in browser-utils as a dependency, driven by the introduction of soft navigation web vitals and that bundle size is more or less the same once we cover the missing bfcache/soft-nav gaps.
Activity
AbhiPrasad commentedon Mar 18, 2024
The decision we make on this slightly blocks #9885
logaretm commentedon Aug 25, 2026
As of #23070 we no longer vendor the web vitals and depend on it in browser-utils as a dependency, driven by the introduction of soft navigation web vitals and that bundle size is more or less the same once we cover the missing bfcache/soft-nav gaps.