sentry-javascript
sentry-javascript copied to clipboard
🤠Sentry captures errors that are not mine in a WordPress environment
If you develop a WordPress plugin with part of the code in JS and with Sentry integrated, it captures the errors of all the plugins that are running at that moment, that is, of your JS code and the rest of the code (third party) that is running at that moment.
Is there any way to filter the errors and only send to Sentry the errors where Sentry is integrated (my code)?

You can filter events locally by using
ignoreErrors option
https://docs.sentry.io/platforms/javascript/configuration/filtering/#decluttering-sentry
You can also filter in Sentry if that's not enough https://docs.sentry.io/product/data-management-settings/filtering/