Observe that reported Core Web Vitals coverage drops by 10x
Expected behavior: reported Core Web Vitals coverage should not change with sample rate changes.
Cause of issue:: The CWV coverage widget uses totalPageViews as the divisor, but should used the number of sampled-in pageviews as CWV values are removed from sampled-out transactions:
Kibana version: 8.x
APM JavaScript Agent version: 5.12.0
Steps to reproduce:
/app/ux
:xx% of the traffic reported
)transactionSampleRate: 0.1
)Expected behavior: reported Core Web Vitals coverage should not change with sample rate changes.
Cause of issue:: The CWV coverage widget uses
totalPageViews
as the divisor, but should used the number of sampled-in pageviews as CWV values are removed from sampled-out transactions:https://github.com/elastic/kibana/blob/main/x-pack/plugins/exploratory_view/public/components/shared/core_web_vitals/web_core_vitals_title.tsx#L104