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
Hi, I'm trying to understand the purpose of the default integration TryCatch. The docs indicate the wrappers installed by this integration are required to capture errors of asynchronous events, but I'm looking for a little more context as to what is actually gained or lost with this integration enabled or disabled.
From my own testing, I couldn't see much difference with setTimeout related exceptions with this integration turned off as the window.onerror mechanism still works fine. The only thing I noticed is that the mechanism goes from instrument to onerror and handled from true to false. The latter of these changes seems a bit odd to me, because the setTimeout error was in fact never "handled."
I see that there are a few other wrappers for things like XHR, RAF and DOM event listeners but I believe the Window error Event will handle all of these in similar fashion.
It was all about extracting correct function name for the event handler and as Abhi mentioned, about getting the information where the event originated from, as error thrown within event handler was very hard to trace back, back in the day.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm trying to understand the purpose of the default integration TryCatch. The docs indicate the wrappers installed by this integration are required to capture errors of asynchronous events, but I'm looking for a little more context as to what is actually gained or lost with this integration enabled or disabled.
From my own testing, I couldn't see much difference with
setTimeoutrelated exceptions with this integration turned off as the window.onerror mechanism still works fine. The only thing I noticed is that the mechanism goes frominstrumenttoonerrorand handled fromtruetofalse. The latter of these changes seems a bit odd to me, because thesetTimeouterror was in fact never "handled."I see that there are a few other wrappers for things like XHR, RAF and DOM event listeners but I believe the Window
errorEvent will handle all of these in similar fashion.Thanks in advance,
Justin
All reactions