An open API service indexing awesome lists of open source software.

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.

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-vitals

yarn add sentry-web-vitals

pnpm add sentry-web-vitals
```

## Usage

```
import { measureWebVitalsMetrics } from 'sentry-web-vitals'

measureWebVitalsMetrics(Sentry.getCurrentHub())
```