Closed AlexSun98 closed 4 years ago
Yes, you can pass any custom Sentry options as sentryOptions
param to the withSentry
function like this:
withSentry({
sentryOptions: {
beforeSend: (event, hint) => {
// ...
}
}
}, handler);
Please let me know if this works.
Yes, you can pass any custom Sentry options as
sentryOptions
param to thewithSentry
function like this:withSentry({ sentryOptions: { beforeSend: (event, hint) => { // ... } } }, handler);
Please let me know if this works.
Where is this documented? @arabold
Is there anyway to use event filtering with the lib?
`import * as Sentry from "@sentry/browser";
init({ beforeSend(event, hint) { const error = hint.originalException; if ( error && error.message && error.message.match(/database unavailable/i) ) { event.fingerprint = ["database-unavailable"]; } return event; }, });`