-
Notifications
You must be signed in to change notification settings - Fork 128
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃挕 Discard errors coming from specific source files #2488
Comments
Hi @vinnymac,
The RUM SDK do not collect failed network calls as error events since the v3 (cf upgrade entry), so RUM error events do not have
We have an
I am guessing that what you'd want is the |
Hi @bcaudan, Thanks for the quick reply, must be a carry over from our old v3 implementation before we migrated to v4. We upgraded to v5 in the last week, so we have been taking a closer look at how to fine tune the configuration on our site.
I see
This sounds like it would solve the problem 馃憤馃徏 |
the
Since v3, browser RUM SDK don't collect
Unfortunately, for now, the SDK don't have access to the unminified file where the error happened ( |
Is your feature request related to a problem? Please describe.
Currently my application configures RUM to discard a subset of errors by message and resource url. Pseudo code is something like the following.
Unfortunately not every error has a resource url. Inspecting the events and context for errors that are sent in
beforeSend
, and while studying the source code in this repository, I did not find any mechanism to determine the source of the error. Additionally the original error isn't available so I can attempt to parse out the source. This means I receive much more in-actionable noise in RUM than desired from third party scripts.Describe the solution you'd like
The Datadog RUM application error interface does show the source of an error when available, yet I don't see that same information in
beforeSend
so I can make a decision on whether or not to discard an error. Can we add a feature for filtering errors by URL? Or can we add these sources to the event objects so that developers can decide whether or not they want to keep errors for particular third parties?Pseudo code for a solution might look something like
Describe alternatives you've considered
I've inspected the arguments of
beforeSend
, and haven't seen an alternative for determining the initiator for a particular error. Perhaps for a subset of errors it may be possible to parse this out of the stack trace, when available.I read through these docs and did not see a way to configure this functionality.
Thanks
SDK Version
CDN Sync with v5
Related issues
#1616
#362
The text was updated successfully, but these errors were encountered: