Since Sentry has an issue on trigger web vitals metrics performance tracking. This library is created for solving this by using web-vitals
callback and perform the Sentry measurement.
npm i sentry-web-vitals
yarn add sentry-web-vitals
pnpm add sentry-web-vitals
import { measureWebVitalsMetrics } from 'sentry-web-vitals'
measureWebVitalsMetrics(Sentry.getCurrentHub())