-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sentry 9.2 ignores allowUrls and reports errors anyway #15513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The event you linked is on version |
Alright, we gotta dig deeper. Would you mind sharing the rest of your Sentry init? Thanks! |
Oh damn I found the issue but it's super fucky and I would have never thought of this. Basically, the issues you linked contain two "linked" exceptions. The root exception is the one you wanted to ignore and the other one (its cause) is an We'll do two things:
|
thanks @lforst - it's been let's say.. challenging to get to a "just alert me about the things im interested in" situation.. |
Getting rid of noise is a big topic for us. Unfortunately, it's tricky since browsers are surprisingly uncontrolled environments and there are no conventions around letting website owners know that errors come from in-app-browser code, browser extensions, user scripts, .... If you haven't seen it, you might wanna give this a shot: https://docs.sentry.io/platforms/javascript/configuration/filtering/#using-thirdpartyerrorfilterintegration |
A PR closing this issue has just been released 🚀This issue was referenced by PR #15521, which was included in the 9.3.0 release. |
Thanks! This is really great 👍 |
@lforst It worked nicely, and then it didn't, why is this not tagged? I've already changed the setting to: |
@patroza looking at the release of that event it's from a day ago. Is it possible that this is from a client that still has old code loaded and that release didn't entail your changes with the integration yet? |
@lforst no that was the first thing I checked, that release is 2 commits later than the behaviour change. |
it actually seems inverted now: the following is internal code but marked third party unless node_modules are now also considered third party, in which case we definitely can't use "if-contains-third-party-frames". |
@patroza for this integration, never look at the unminified stack trace. All of the logic runs before symbolication can happen. So node_modules are irrelevant in the browser. For the first one, there are frames with weird filenames (the request and query ones at the bottom). I have no idea how they come to be, I need to assume some of your code is responsible for spitting these in the stack trace. These can of course not be mapped to a filename and are thus considered 3rd party frames. Same for the second one. |
At this point, I should note that this integration is very much best effort and was an experiment of mine. There are false negatives. I think the integration can help at narrowing down, but should be taken with a grain of salt. Maybe I need to put this a bit more prominent in the docs. All of this is very confusing. I sometimes hate the browser environment because it creates so much noise. Web citicenship of extensions and in app browsers are garbo. |
@lforst ah interesting, yes, they are Observability spans of Effect. |
We could add an option/hook to the We currently don't have the capacity to work on new features ourselves but feel free to contribute. The code is here:
|
@lforst thanks, can you at least check why https://macs-holding.sentry.io/issues/6317718880/events/9b2d6ee213a24a4dba727f03e4c7769c/ it seems the stack trace got inverted, perhaps as part of the allowUrls fix? Oh and it didn't get filtered in neither "contains" or "only-contains" modes. |
As soon as there is an error without stack frames, we don't tag it, as we cannot know whether it is your code or external code. I'll also look at the inversion. That actually looks pretty bad. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
9.2.0
Framework Version
No response
Link to Sentry event
https://macs-holding.sentry.io/issues/6317718880/events/d9099849308c471aab0ac0a2c05ed783/?project=4504671195299840
Reproduction Example/SDK Setup
Steps to Reproduce
Error happens in 3rd party script
Expected Result
No report
Actual Result
Got report
The text was updated successfully, but these errors were encountered: