microsoft / ApplicationInsights-JS

Microsoft Application Insights SDK for JavaScript
MIT License
647 stars 237 forks source link

Standard browser metrics to support Core Web Vitals #2007

Open krishnasaga opened 1 year ago

krishnasaga commented 1 year ago

Is your feature request related to a problem? Please describe. Support Core Web Vitals https://github.com/microsoft/ApplicationInsights-JS/issues/2092

Describe the solution you'd like Need additional standard metrics for tracking browser paint metrics

Existing Standard metric browserTimings/totalDuration Existing Standard metric browserTiming/processingDuration Existing Standard metric browserTimings/sendDuration Existing Standard metric browserTimings/receiveDuration

New proposal browserTimings/firstPaint - First Paint New proposal browserTimings/firstContentfulPaint - https://web.dev/fcp/ New proposal browserTimings/primeryPaint - Time at which primary content of the page is painted on the screen New proposal browserTimings/secondaryPaint - Time at which secondary content is painted on the screen

Describe alternatives you've considered

MSNev commented 1 year ago

I'm tagging as an enhancement, I'm not currently sure of any timeframe when we could start looking at this. I can say based on where we are with the beta (v3.x) that this will only be implemented in v3 as v2 is already in a feature freeze state.

ejerskov commented 1 year ago

This would really help when choosing between Application Insight and ie. Sentry.io which already collects this information

robcornelius commented 9 months ago

This seems to be very useful information for AppInsights to collect. It would make a great feature.