Closed robcrocombe closed 3 years ago
Thanks for opening an issue. You're right that we should be propagating the hint here. @kamilogorek what do you think the best way to do this is?
@sentry/minimal
's captureEvent
doesn't allow us to pass in a hint, should we change the function signature? https://github.com/getsentry/sentry-javascript/blob/master/packages/minimal/src/index.ts#L86
Hey @robcrocombe, we've adjusted the Error Boundary so that the hint should be passed down correctly. This is available with SDK v16.3.3.
Please let us know if you have any other feedback or issues. Thanks!
Hey @AbhiPrasad, we've been using this version for a few days and all seems well. Thanks very much for your quick response!
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/react
Version:
Description
The docs describe a way of filtering events using the
hint.originalException
object. However using the React library with included ErrorBoundry component thehint
object only contains{ event_id: 'xxxx' }
and nooriginalException
orsyntheticException
etc.I've done some digging and I think (not certain, only trying to read the lib code) that this new addition https://github.com/getsentry/sentry-javascript/pull/3532 (React 17 error boundaries) has swallowed the original error. I tried skipping this section of the code and the original exception came back on the
hint
insidebeforeSend
.Please can something be done to restore this functionality, or am I doing something wrong? Thanks