The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
We have gotten several Sentry reports about a crash Cannot read properties of undefined (reading 'brands') from this file. Apparently some browsers does have the field userAgentData defined, but its value is undefined.
What
Adds an extra check that userAgentData is truthy before trying to read it.
Why
We have gotten several Sentry reports about a crash
Cannot read properties of undefined (reading 'brands')
from this file. Apparently some browsers does have the fielduserAgentData
defined, but its value is undefined.What
Adds an extra check that
userAgentData
is truthy before trying to read it.Links
Checklist