Add support for first party inline scripts in thirdPartyErrorFilterIntegration
#14435
patrikholcak
started this conversation in
Features / New SDKs (Integrations) / Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We tried using
drop-error-if-exclusively-contains-third-party-frames
option but it appears to be ignoring inline scripts, which we’re using on our website.You can verify this setting up sentry as follows
Errors thrown in inline scripts will have
third_party_code: true
set. Settingbehaviour: 'drop-error-if-exclusively-contains-third-party-frames'
completely ignores any errors thrown in inline scripts.What I’d like to propose is adding a data attribute on the inline script, which would identify it as first party:
You can actually grab a reference to the running script element with
document.currentScript
, so it should be doable and would help us not to flood Sentry with unrelated events.Beta Was this translation helpful? Give feedback.
All reactions