-
Notifications
You must be signed in to change notification settings - Fork 57
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
Missing DataDog events caused by UnknownError #2013
Comments
Hello @nicbell! In order to better understand the issue, I have the following questions:
|
Hello! I can provide provide additional info on the issue as I am working with @nicbell: General Info
We are looking at ~70% of events lost when the app is in the Background and possibly ~10% in the Foreground. Please note that these are Rough estimates as this is an ongoing investigation. Additional Investigations Performed
Error LogThis is the only Datadog error we are seeing in the logs, and we have tried with all log levels, and the additional sdk log artifact enabled just in case it provided more info. The error is logged multiple times per session.
Example of this occurring consecutively within 1 second with timestamps:
Work ManagerWe can occasionally see the Work Manager succeeding. Have not seen any erroneous Worker results in the logs.
Artifacts Implemented
and tried out Additional log warningsThe only warnings we are seeing are listed below.
and in some cases
|
Hello @MikeFot! Thanks for the details. I don't think it is somehow related to the background events, here we have a some non-successful status code returned by the Datadog intake, meaning something is wrong with the payload. I've added a small change in the referenced PR above, which is now a part of 2.9.0 release, which will add response status code to the error message. Can you please try then version |
Thanks @0xnm we will try it out and report back. |
Thank you very much for adding this log! Ran the app with the new version today through several scenarios and I can see the status code 200 being reported.
|
@MikeFot Thanks a lot for a quick return. This log indeed makes things a bit more clear, I have additional questions now:
|
Hi!
Cheers! |
I think here the issue is that your custom endpoint is replying with status code Ideally, custom endpoint should act as a proxy and forward directly the communication with Datadog intake as-is (that is why it is advised to use the proxy configuration instead of custom endpoint). I may suggest you to analyze the communication between your custom endpoint and Datadog intake for these failing requests, and if there is indeed a difference in status codes reported, then to adjust endpoint configuration or switch to the proxy setup if it works for you. |
Thank you very much! We are going to investigate and let you know 🙂 |
Describe the bug
During events analysis at the Datadog console, we've noticed that some RUM custom action events, tracked from our Android app, are missing.
Later, going through Android logcat on a test device, we've noticed a regular stream of error messages like this:
It looks like some batches are randomly dropped but the errors don't really help us investigate why.
We believe these are coming from this code in the SDK.
https://github.com/DataDog/dd-sdk-android/blob/release/2.8.0/dd-sdk-android-core/src/main/kotlin/com/datadog/android/core/internal/data/upload/UploadStatus.kt#L87
We've seen this on Datadog Android SDK versions 2.6.0, 2.7.0 and 2.8.0.
Could you please help to identify the source of the issue?
Reproduction steps
We don't know how reproduced it.
Logcat logs
No response
Expected behavior
No response
Affected SDK versions
2.6.0, 2.7.0 and 2.8.0.
Latest working SDK version
None
Did you confirm if the latest SDK version fixes the bug?
Yes
Kotlin / Java version
1.9.22
Gradle / AGP version
8.3.1
Other dependencies versions
Tried with work manager 2.9.0 & 2.8.1
Device Information
No response
Other relevant information
No response
The text was updated successfully, but these errors were encountered: