Describe what happened
My team is running into some issues with DataDog's RUM crash reporting and how it seems to be integrated with the ViewTrackingStrategy configuration. We are interested in the insight that comes from view tracking, but we also want reporting on crashes that can occur outside of the onPause and onResume fragment and activity lifecycles. Is this possible with the DataDog SDK?
Steps to reproduce the issue:
In the following scenarios, the RUM session does not show that the session ends with an error. No crash seems to be reported.
Crash in Fragment
- Configure the DataDog SDK with
useViewTrackingStrategy(MixedViewTrackingStrategy(false)) or FragmentViewTrackingStrategy(false).
- Force a crash in a Fragment within the
onViewCreated lifecycle method.
- Observe that no crash report is sent to DataDog.
Crash in JobIntentService.
- Configure the DataDog SDK to use
ActivityViewTrackingStrategy or use no view tracking strategy
- Schedule a job in a
JobIntentService with a crash in the onHandleWork lifecycle method.
- Observe that no crash report is sent to DataDog.
Note: We noticed here that adding GlobalRum.get().addView() before triggering the crash will allow DataDog to report the crash.
Describe what you expected:
Crashes are always reported regardless of any UI lifecycle.
Additional context
- Android OS version: Android 11
- Device Model: Pixel 5
- Datadog SDK version: 1.11.1
Thank you!
Describe what happened
My team is running into some issues with DataDog's RUM crash reporting and how it seems to be integrated with the ViewTrackingStrategy configuration. We are interested in the insight that comes from view tracking, but we also want reporting on crashes that can occur outside of the
onPauseandonResumefragment and activity lifecycles. Is this possible with the DataDog SDK?Steps to reproduce the issue:
In the following scenarios, the RUM session does not show that the session ends with an error. No crash seems to be reported.
Crash in Fragment
useViewTrackingStrategy(MixedViewTrackingStrategy(false)) orFragmentViewTrackingStrategy(false).onViewCreatedlifecycle method.Crash in JobIntentService.
ActivityViewTrackingStrategyor use no view tracking strategyJobIntentServicewith a crash in theonHandleWorklifecycle method.Note: We noticed here that adding
GlobalRum.get().addView()before triggering the crash will allow DataDog to report the crash.Describe what you expected:
Crashes are always reported regardless of any UI lifecycle.
Additional context
Thank you!