[Feature] skywalking-client-js supports Core Web Vitals metrics #11903
Replies: 2 comments 8 replies
-
It is not clear what you are proposing. Are you asking for expanding You should know, in SkyWalking, new feature extension relies on who will own this and agree to implement it. The PMC/committer team usually would not accept feature requests, unless they need this by themselves and willing to own the feature. |
Beta Was this translation helpful? Give feedback.
-
I apologize for confusion. Could you provide a more specific description of how to implement "Expose metrics APIs in the client-js": |
Beta Was this translation helpful? Give feedback.
-
Search before asking
Description
skywalking-client-js is a library that provide metrics and error collection , and sends them to the SkyWalking backend. Currently, it supports collecting First Meaningful Paint (FMP) metric.
The goal is to also support collecting and displaying Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and First Input Delay (FID) metrics, which are core web vitals proposed by Google. These is
These metrics are equally applicable in both Chrome and non-Chrome browsers.
Use case
By referencing the repository https://github.com/GoogleChrome/web-vitals, you can calculate metrics using
import {onLCP, onFID, onCLS} from 'web-vitals'
statement and send them to the SkyWalking backend. The SkyWalking backend will aggregate and display the metrics.Related issues
No response
Are you willing to submit a pull request to implement this on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions