onBeforeSend property

OnBeforeSendCallback? onBeforeSend
getter/setter pair

Allows accessing or mutating the candidate error payload immediately before it is sent, or cancelling the send outright.

Return the (modified) RaygunMessage to send the report.

Return null from the callback to cancel sending the report.

Implementation

static OnBeforeSendCallback? onBeforeSend;