Issue
I'm using the drop-error-if-exclusively-contains-third-party-frames option from thirdPartyErrorFilterIntegration, but errors that appear to come from outside my codebase are still being sent. Why is that happening?
Applies To
Anyone using the
thirdPartyErrorFilterIntegration
Resolution
These errors will not be dropped if the stack trace contains frames from node_modules. Since these dependencies are bundled with your code during the build process, the SDK treats them as part of your application when evaluating whether an error is third-party.
If you need more precise control over which errors are sent, we recommend using more granular filtering strategies. Specifically:
Use the
beforeSendcallback to programmatically inspect and drop events based on custom logic.Use
allowUrlsand/ordenyUrlsto control which sources should be considered first-party or excluded entirely.
You can learn more about these filtering options here.
