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
Description/Screenshot
Currently snippet collects only unhandled errors but not unhandled rejections while sdk load. This can lead to missing rejections in analytic logs.
Interesting, this is a good observation. Most people probably have not identified this because of the small window of time between when the snippet runs and drops the SDK script tag on the page and when it's loaded. By default the SDK (should) be loaded before the page becomes interactive.
Historically, this also use to "delay" the execution of other scripts (so this situation never occurred), however, this is no longer true with modern browsers so other scripts may cause fail cause unhandled rejections.
Tagged as an enhancement for the snippet.
The downside is the additional code that will be required to be included in the snippet.
Description/Screenshot
Currently snippet collects only unhandled errors but not unhandled rejections while sdk load. This can lead to missing rejections in analytic logs.
Steps to Reproduce
<script>Promise.reject('foo')</script>
Expected behavior
Unhandled rejection captured and reported.
The text was updated successfully, but these errors were encountered: