-
Notifications
You must be signed in to change notification settings - Fork 133
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 crashes when tracking consent is pending #1701
Comments
Hey @kublaios 👋
That is how the SDK behaves: when the tracking consent is
Does it answer your question? |
Thanks for the swift response, @maxep. Unfortunately, both on the live app as well as in our testing, we are losing crashes that occur before sign-in. Any log, for that matter. We noticed this when we discovered that some crashes are reported to Firebase Crashlytics but not Datadog. The same crash is reported to Datadog if it happens when the user is signed in. I had also tried the following:
Could it be that only the logs from the same session are reported after consent is granted and the session identifier is reset upon the app is terminated/crashed? |
Hey @kublaios, Sorry, I was wrong on my previous comment: We only keep pending data for the current session, not from the previous one. You are getting crashes from Firebase Crashlytics before the consent is actually granted? I will bring this topic to the team! thank you for the report 🙏 |
Sounds good, thanks @maxep.
Yes, but since the Firebase analytics is disabled in our case, there is no additional consent we need to configure later on. As Datadog provides more context, we are evaluating whether to use it instead of Firebase Crashlytics and this capability would be a big plus. |
We have encountered a similar issue in our scenario where crashes are not being reported to Datadog when the consent is in a pending state during initialization. We would greatly appreciate it if crashes could be reported once the consent status changes to Granted instead dropped completely. Thank you. |
Thanks for the additional details. It's a totally valid use case, it has been added to our backlog 👍 |
Question
The Datadog SDK is initialized during the app launch with
trackingConsent
set topending
and we update it during the user sign-in. The problem is that if the user experiences a crash before signing in, the emergency log/other logs are not uploaded to Datadog, even after the user signs in.I expected that the logs would persist from the previous session until the tracking consent is granted and they are uploaded together with the logs in the current session. Is the current behavior the expected behavior and, if yes, is there a way of retrieving the crashes for sessions where tracking consent is pending/granted later?
The text was updated successfully, but these errors were encountered: