-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
As discussed in https://3.basecamp.com/4738529/buckets/18166704/messages/3942605857
Research if we can add Web Vital support in the JavaScript libraries.
Wardormeur
Activity
wesoudshoorn commentedon Jul 12, 2021
What could be useful
The Web Vital package can track web vitals from your browser and send them to an endpoint. We currently already do something like this through our Next.js integration. Apparently, Next.js has built-in support for this.
Showing metrics on a dashboard

This was a dashboard created from a blog post on our blog. It graphs the web vitals over time, which can be very useful for debugging front-end performance.
What we're missing ourselves: Samples
When making AppSignal.com faster, it's easy to get metrics like these over time (Vercel has an analytics product that does this). The missing link is getting some type of sample for a request with bad Web Vitals. We're now being old there are requests which take 5S to show the first content, but we don't know what browser/country/connection is being used.
It would be awesome if there's some way to also load samples into AppSignal of the requests with the slowest web vitals.
Other products that do something with Web Vitals
https://www.debugbear.com/
https://www.speedlify.dev/
https://calibreapp.com/
https://speedcurve.com/
matsimitsu commentedon Jul 13, 2021
The JS integration is currently not setup to collect samples, I'm also not entirely sure what it should collect. But we can update the integration to emit samples if needed, and have the public endpoint collect them. Note that the public endpoint s limited in what it accepts size-wise for samples. Samples with 10k events will be rejected by the endpoint, for example.
matsimitsu commentedon Jul 14, 2021
Our public endpoint already accepts web-vitals btw, on
/metrics/webvitals
in the following format:tombruijn commentedon Dec 9, 2021
https://app.intercom.com/a/apps/yzor8gyw/inbox/inbox/540709/conversations/16410700078716