RUM-16604: Read process importance early#3504
Merged
0xnm merged 1 commit intoJun 3, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3504 +/- ##
===========================================
- Coverage 72.22% 72.14% -0.07%
===========================================
Files 965 965
Lines 35596 35602 +6
Branches 5935 5932 -3
===========================================
- Hits 25706 25685 -21
- Misses 8278 8292 +14
- Partials 1612 1625 +13
🚀 New features to boost your workflow:
|
0xnm
marked this pull request as ready for review
June 3, 2026 14:06
0xnm
force-pushed
the
nogorodnikov/rum-16604/read-process-importance-early
branch
from
June 3, 2026 14:54
a4876d0 to
f11df77
Compare
ambushwork
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
In case of https://developer.android.com/topic/libraries/app-startup usage Datadog SDK may be started from the Content Provider.
And since we use process importance to start RUM pipeline
dd-sdk-android/features/dd-sdk-android-rum/src/main/kotlin/com/datadog/android/rum/internal/monitor/DatadogRumMonitor.kt
Lines 499 to 506 in e9efd7c
and process importance is read in another Content Provider
dd-sdk-android/dd-sdk-android-internal/src/main/java/com/datadog/android/rum/DdRumContentProvider.kt
Lines 24 to 35 in e9efd7c
we may have it not yet available by the time SDK starts, because it all depends on the initialization order.
This PR does the following:
initOrderto theDdRumContentProvider, so it has a priority in the startup listDdRumContentProvideris initialized, we try to read it in the getter as well.Review checklist (to be filled by reviewers)