timeseries RUM-13949 Add memory timeseries serializer and session factory#3434
Draft
satween wants to merge 3 commits into
Conversation
This was referenced May 12, 2026
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 Add memory timeseries serializer and session factory
1632f2f to
cdcacee
Compare
4406481 to
3c4b02d
Compare
cdcacee to
9c62b82
Compare
3c4b02d to
98b83f2
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## tvaleev/feature/RUM-13949/timeseries-cpu-support #3434 +/- ##
====================================================================================
+ Coverage 72.11% 72.22% +0.11%
====================================================================================
Files 971 973 +2
Lines 35588 35653 +65
Branches 5920 5929 +9
====================================================================================
+ Hits 25664 25749 +85
+ Misses 8286 8280 -6
+ Partials 1638 1624 -14
🚀 New features to boost your workflow:
|
9c62b82 to
509d75e
Compare
98b83f2 to
118d5ec
Compare
509d75e to
db0263b
Compare
118d5ec to
431b419
Compare
This comment has been minimized.
This comment has been minimized.
431b419 to
2b03f75
Compare
ec3a571 to
62b2166
Compare
2b03f75 to
5e8be62
Compare
62b2166 to
4ee1870
Compare
5e8be62 to
558a3fa
Compare
Adds `MemoryEventSerializer`, which converts a batch of memory `DataPoint`s (heap + native RSS) into a `RumTimeseriesMemoryEvent` JSON object. Introduces `TimeseriesConfiguration` as the public `@ExperimentalRumApi` configuration class (sampling intervals, batch size, background collection flag). Completes the pipeline with `RumSessionScopeTimeseriesFactory`, which wires CPU and memory readers, serializers, and the `TimeseriesConfiguration` together to create fully configured `RumSessionScopeTimeseries` instances for each new session. Completes the two metric types and provides the factory needed to tie the pipeline to the RUM session lifecycle. `MemoryEventSerializer` reports both heap and native RSS in bytes, normalised to a 0–100 percent scale using device `maxMemory`. `RumSessionScopeTimeseriesFactory` creates one pipeline per metric type and dispatches them through the same `Timeseries.Factory` interface. `TimeseriesConfiguration` exposes sampling interval, batch size, and a background-collection flag with sensible defaults.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4ee1870 to
4c08c9b
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
MemoryEventSerializer, which converts a batch of memoryDataPoints (heap + native RSS) into aRumTimeseriesMemoryEventJSON object. IntroducesTimeseriesConfigurationas the public@ExperimentalRumApiconfiguration class (sampling intervals, batch size, background collection flag). Completes the pipeline withRumSessionScopeTimeseriesFactory, which wires CPU and memory readers, serializers, and theTimeseriesConfigurationtogether to create fully configuredRumSessionScopeTimeseriesinstances for each new session.Motivation
Completes the two metric types and provides the factory needed to tie the pipeline to the RUM session lifecycle.
Review checklist (to be filled by reviewers)