getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
12 stars 5 forks source link

feat(record): Allow `callbackWrapper` to attach a `__source__` property to exceptions #111

Closed billyvg closed 12 months ago

billyvg commented 12 months ago

Allow callbackWrapper to attach an optional __source__ property to a caught exception. This will allow downstream errorHandlers to decide to re-throw an exception based on the source type.

Needed to address https://github.com/getsentry/sentry-javascript/issues/9170

billyvg commented 12 months ago

Actually, we probably don't need this as we should just re-throw error in our Replay SDK.