Skip to content

Original Exception not included as part of the hint when triggering the beforeSend functionΒ #14222

@dcarabott

Description

@dcarabott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions