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
## Which problem is this PR solving?
Adds basic web vitals span based auto-instrumentation. Heavily based on
[what will be available
upstream](https://github.com/open-telemetry/opentelemetry-sandbox-web-js/blob/auto-instrumentation-poc/pkgs/instrumentations/web/web-vitals/src/web-vitals.ts),
with the main difference being that the upstream instrumentation will be
based on events, we'll have to support that down the line as well.
Should align very closely with the spec laid out in #61
- Closes#12
## Short description of the changes
- Adds web vitals auto-instrumentation based on the web-vitals package
- Adds option to specify which vitals should be tracked as well as a
default of tracking CLS, LCP and INP.
- Adds tests to check spans created have the attributes we expect
## Out of scope for this PR
This PR is really aimed at getting the base instrumentation into the
package so there will be follow up work to:
- Add more options based on the options available for configuring
web-vitals in the main package
- Automatically initializing web vitals and the config to make that
happen
- Smoke tests
## How to verify that this has the expected result
- Run the example app to see web vitals spans being sent.
Add web vitals auto-instrumentation to this repo. The most up to date version lives in the docs repo.
Open Question: Should this be packaged separately? Do we need npm workspaces support for this repo?
The text was updated successfully, but these errors were encountered: