-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana Faro JS Loadtime #713
Comments
Hey @ramuajayk Faro's performance instrumentation can track resource timings like JS, CSS, Fonts etc. This is to reduce the number of requests / size of the payload send by Faro. You can enable full resource tracking it in the Faro config: initializeFaro({
// ...
trackResources: true, // or false to turn off resource tracking
}); See also: |
Thank you @codecapitano , I appreciate it |
Thank you @ramuajayk does it satisfy your needs / solve your goal? |
It does @codecapitano , I do have a follow up question,
|
For now it's an on or off switch. Very basic example: initializeFaro() {
beforeSend: (item) => {
const isResourceEvent = item.type === 'event' && item.payload.name === 'faro.performance.resource';
if (isResourceEvent) {
return item.payload.attributes.initiatorType === 'script' ? item : null;
}
return item;
},
}
Atm Grafana cloud has no dedicated dashboard for resource breakdowns. Currently the only option is to manually create a panel. |
Got it and thank you @codecapitano
A quick clarification on the second part, If I understood right, |
Yes, web-vitals are tracked by default via Faro's web-vitals instrumentation. In Grafana cloud you can find them on the overview dashboard and the session details view.
We'll provide a dedicated area for performance insights which will contain resource breakdown as well. A place (which is not very obvious tbh) where you can see some performance milestones already is by expanding the "Page Load" row in the user-journey table for a specific session. Hint: Here's a video showing a demo app which propagates trace context back to Faro. Screen.Recording.2024-10-29.at.09.09.30.mov |
@codecapitano thank you again and I do really appreciate it. |
Oh thank you so much @ramuajayk cheers |
@ramuajayk since you are interested in performance observability we are super happy to hear your ideas, about your experiences with the product, what you need, miss and like. It helps a lot to get direct feedback from users especially in the perf. area because it is still in development in Grafana cloud. Cheers, cc @cedricziel |
Hello,
Does Faro collect JS loadtimes automatically or do we need additional setup of code etc.,
Looking forward.
Thanks,
Ajay
The text was updated successfully, but these errors were encountered: