Does the RN Sentry SDK have an equivalent to the beforeSend function that I can use to filter out events with the JS browser SDK? I don’t see it in the Typescript typings for the init method, and all I see when grepping through the codebase for ‘beforeSend’ is a beforeSendEventBlock, which doesn’t look like the same thing (and is iOS only). I’m using RN Sentry 1.0.0-beta 6.
The SDK works the same as our browser SDK, so using beforeSend should be as simple as
Sentry.init({
...
beforeSend(event) {
console.log(event);
return event;
}
});