timeseries [5/6] RUM-13949 Wire timeseries collection into RUM session lifecycle#3435
Draft
satween wants to merge 4 commits into
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced May 12, 2026
timeseries RUM-13949 Wire timeseries collection into RUM session lifecycle
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## tvaleev/feature/RUM-13949/timeseries-memory-session-factory #3435 +/- ##
==============================================================================================
Coverage ? 72.30%
==============================================================================================
Files ? 976
Lines ? 35873
Branches ? 5973
==============================================================================================
Hits ? 25936
Misses ? 8306
Partials ? 1631
🚀 New features to boost your workflow:
|
1632f2f to
cdcacee
Compare
f630b6d to
3b05b0c
Compare
cdcacee to
9c62b82
Compare
3b05b0c to
9d01d39
Compare
9c62b82 to
509d75e
Compare
9d01d39 to
8ea9614
Compare
509d75e to
db0263b
Compare
8ea9614 to
9a49aaa
Compare
This comment has been minimized.
This comment has been minimized.
db0263b to
ec3a571
Compare
0db4915 to
91bf158
Compare
ec3a571 to
62b2166
Compare
91bf158 to
7298723
Compare
4ee1870 to
4c08c9b
Compare
7298723 to
cd319d9
Compare
timeseries RUM-13949 Wire timeseries collection into RUM session lifecycletimeseries [5/6] RUM-13949 Wire timeseries collection into RUM session lifecycle
Adds `enableTimeseries()`/`disableTimeseries()` builder methods on `RumConfiguration.Builder`. Wires the `Timeseries.Factory` through `RumFeature` → `DatadogRumMonitor` → `RumApplicationScope` → `RumSessionScope`, so that a new `RumSessionScopeTimeseries` collector is created and started for each sampled session and stopped on session end or SDK teardown. Also enables timeseries in the Kotlin sample app. Connects the standalone pipeline and public configuration API to the existing RUM session lifecycle, completing the end-to-end data flow from configuration through to event emission. Existing scope and monitor test scaffolding is updated to pass `timeseriesFactory = null` / a mock factory where required. The `RumFeature.onStop()` ordering test verifies the writer is still live when the final flush fires.
…ctivityManager cast Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MemoryInfo() and getMemoryInfo() are listed in knownThrowingCalls as they can throw RuntimeException on broken Android implementations. Extract to readTotalRamBytes() with a safe RuntimeException catch and WARN log, falling back to 0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4c08c9b to
acebd04
Compare
cd319d9 to
ac48ae9
Compare
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?
Adds
enableTimeseries()/disableTimeseries()builder methods onRumConfiguration.Builder. Wires theTimeseries.FactorythroughRumFeature→DatadogRumMonitor→RumApplicationScope→RumSessionScope, so that a newRumSessionScopeTimeseriescollector is created and started for each sampled session and stopped on session end or SDK teardown. Also enables timeseries in the Kotlin sample app.Motivation
Connects the standalone pipeline and public configuration API to the existing RUM session lifecycle, completing the end-to-end data flow from configuration through to event emission.
Review checklist (to be filled by reviewers)