Skip to content

RUM-11785: Do not create a new session for TTID#2954

Merged
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/RUM-11785/do-not-create-new-session
Oct 21, 2025
Merged

RUM-11785: Do not create a new session for TTID#2954
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/RUM-11785/do-not-create-new-session

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR is related to this discussion. I thought about it a bit more and think that TTID event shouldn't trigger session recreation.

Reasons:

  1. We have session sampling, the decision is made here. Suppose sampleRate < 100% and for example for the StartView action (considered interaction) the session wasn't started. The TTID event that happens a bit later gives another chance to start the session. By giving more chances to start the session we effectively increase the sampling rate.
  2. The code will be simpler, we actually don't need this. I did this at first because it seemed logical to consider TTID as some kind of interaction, but I think the point above is much more important.

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)

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Oct 20, 2025

Copy link
Copy Markdown

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 100.00% (+29.18%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: fc9e589 | Docs | Was this helpful? Give us feedback!

@aleksandr-gringauz
aleksandr-gringauz marked this pull request as ready for review October 20, 2025 13:10
@aleksandr-gringauz
aleksandr-gringauz requested review from a team as code owners October 20, 2025 13:10
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.81%. Comparing base (7ed3338) to head (fc9e589).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2954      +/-   ##
===========================================
- Coverage    70.90%   70.81%   -0.08%     
===========================================
  Files          829      829              
  Lines        30385    30384       -1     
  Branches      5184     5184              
===========================================
- Hits         21542    21516      -26     
- Misses        7370     7390      +20     
- Partials      1473     1478       +5     
Files with missing lines Coverage Δ
...droid/rum/internal/domain/scope/RumSessionScope.kt 94.85% <100.00%> (-0.04%) ⬇️

... and 38 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 merged commit 365637f into develop Oct 21, 2025
26 checks passed
@aleksandr-gringauz
aleksandr-gringauz deleted the aleksandr-gringauz/RUM-11785/do-not-create-new-session branch October 21, 2025 08:20
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.

5 participants