You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(browser): Guard against undefined nextHopProtocol (#16806)
fixes#16804
Although `PerformanceResourceTiming.nextHopProtocol` is available in all
the [browsers we
support](https://docs.sentry.io/platforms/javascript/troubleshooting/supported-browsers/)
in v9, I think adding an extra guard is reasonable to make it easier for
older browser support (it's hard to polyfill some of the performance
apis).
This PR just adds a condition `if (resourceTiming.nextHopProtocol !=
undefined)`.
Used cursor to generate some tests for the
`resourceTimingToSpanAttributes` I extracted out.
0 commit comments