-
Notifications
You must be signed in to change notification settings - Fork 63
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
Is there a way to exclude some specific errors from being reported as RUM errors from the OkHttp DatadogInterceptor? #2426
Comments
What I have done as a temporary measure is to instead filter those out on our metrics instead, by filtering out those errors by adding this to my query |
Hi @StylianosGakis, Thank you for your feedback! If I understand your requirement correctly, you can try using |
Hmm interesting I was not aware of that functionality. something like:
|
Hi @StylianosGakis! Yes, RUM and Logs mappers are created to modify/filter out low-level events to the sent to Datadog, so this is a valid use case and your snippet is correct: by returning I'm closing this issue since it is solved, but don't hesitate to re-open it if needed. |
Question
Using the built-in datadog interceptor on our OkHttp instance, we get errors reported for IOExceptions that are originating from the request just being cancelled. This in our app happens basically any time some request may have started, but then the user navigates away from the screen, so we cancel the screen's CoroutineScope, which in turn can cancel some ongoing network requests.
These errors then get reported o RUM, where we see the exception starting with "java.io.IOException: Canceled...".
This messes up with our SLOs tracking due to those request being marked as errors, while they are just typical App behavior and there is nothing concerning about them.
I wonder two things here
a) Do you think this should not be happening and that we got something setup wrong?
b) If it works as intended, is there a way for us to exclude those errors from being reported as such in RUM?
The text was updated successfully, but these errors were encountered: