Skip to content

RUM-11137: Move session properties to ddtags over query parameters#2812

Merged
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/RUM-11137/props-to-ddtags
Aug 6, 2025
Merged

RUM-11137: Move session properties to ddtags over query parameters#2812
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/RUM-11137/props-to-ddtags

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Stop sending service, version, sdk_version, env and variant as HTTP query parameters to the RUM intake. Now sending them in each RUM event in a special ddtags field.

It is a solution to the problem that if we obtain these parameters at the time of uploading to RUM intake from the current DatadogContext they actually might not correspond to the RUM events we are sending (for example after an app update). See the tickets for a more detailed description.

I also removed some duplicate test forge factories from unit tests of features:dd-sdk-android-webview and single-fit:rum. Now we reuse the factories from the testFixtures folder of features:dd-sdk-android-rum project. This is the main reason why this PR has so many removed lines of code.

Here is a link to rum session with these changes. env is visible in all RUM events. You can filter by variant = us1 and sdk_version and see this session (so looks like the backend successfully understands these ddtags).

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@codecov-commenter

codecov-commenter commented Aug 5, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.92%. Comparing base (d592f5e) to head (f44cd74).
⚠️ Report is 1870 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2812      +/-   ##
===========================================
+ Coverage    69.91%   69.92%   +0.02%     
===========================================
  Files          833      834       +1     
  Lines        31218    31225       +7     
  Branches      5242     5243       +1     
===========================================
+ Hits         21823    21833      +10     
- Misses        7912     7917       +5     
+ Partials      1483     1475       -8     
Files with missing lines Coverage Δ
...g/android/rum/internal/DatadogLateCrashReporter.kt 83.24% <100.00%> (+0.09%) ⬆️
...ndroid/rum/internal/domain/scope/RumActionScope.kt 96.95% <100.00%> (-0.49%) ⬇️
...roid/rum/internal/domain/scope/RumResourceScope.kt 95.45% <100.00%> (+1.99%) ⬆️
.../android/rum/internal/domain/scope/RumViewScope.kt 94.25% <100.00%> (+0.25%) ⬆️
...adog/android/rum/internal/net/RumRequestFactory.kt 64.86% <100.00%> (-2.99%) ⬇️
...datadog/android/rum/internal/utils/RumTagsUtils.kt 100.00% <100.00%> (ø)

... and 31 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aleksandr-gringauz
aleksandr-gringauz marked this pull request as ready for review August 5, 2025 14:11
@aleksandr-gringauz
aleksandr-gringauz requested review from a team as code owners August 5, 2025 14:11
@aleksandr-gringauz
aleksandr-gringauz merged commit 7a3b081 into develop Aug 6, 2025
25 of 26 checks passed
@aleksandr-gringauz
aleksandr-gringauz deleted the aleksandr-gringauz/RUM-11137/props-to-ddtags branch August 6, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants