Environment
SaaS (https://sentry.io/)
Steps to Reproduce
When capturing an exception manually, the eventHint.originalException is not being set before triggering the beforeSend function.
client.captureException(exception);
captureException signature is "captureException(exception, hint, scope)"
this will internally call
this._captureEvent(event, hint, scope) -> this._processEvent(event, hint, scope)
and _processEvent calls the processBeforeSend without modifying hint:
processBeforeSend(options, prepared, hint)
Expected Result
Hint to include the original exception before triggering beforeSend
Actual Result
The beforeSend function has no access to the originalException.
Product Area
Unknown
Link
No response
DSN
No response
Version
JS SDK Version: 7.119.2