https://github.com/reiiyuki/sentry-web-vitals
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.
https://github.com/reiiyuki/sentry-web-vitals
cls fcp fid inp lcp sentry sentry-sdk ttfb web-vitals
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/reiiyuki/sentry-web-vitals
- Owner: ReiiYuki
- License: mit
- Created: 2023-11-16T06:08:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T06:11:47.000Z (over 1 year ago)
- Last Synced: 2025-03-04T04:48:24.742Z (2 months ago)
- Topics: cls, fcp, fid, inp, lcp, sentry, sentry-sdk, ttfb, web-vitals
- Language: TypeScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentry Web Vitals
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.
## Installation
```
npm i sentry-web-vitalsyarn add sentry-web-vitals
pnpm add sentry-web-vitals
```## Usage
```
import { measureWebVitalsMetrics } from 'sentry-web-vitals'measureWebVitalsMetrics(Sentry.getCurrentHub())
```