Skip to content

Handle missed orphans#871

Merged
xgouchet merged 2 commits into
release/1.12.0from
xgouchet/RUMM-2058/missing_orphans
Mar 16, 2022
Merged

Handle missed orphans#871
xgouchet merged 2 commits into
release/1.12.0from
xgouchet/RUMM-2058/missing_orphans

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #849

Some orphan events were not counted as orphans

@xgouchet
xgouchet requested a review from a team as a code owner March 16, 2022 08:48
@xgouchet
xgouchet changed the base branch from develop to release/1.12.0 March 16, 2022 08:48
@xgouchet xgouchet added the size-small This PR is small sized label Mar 16, 2022
@xgouchet xgouchet changed the title Xgouchet/rumm 2058/missing orphans Handle missed orphans Mar 16, 2022
onViewDisplayed(event, viewScope, actualWriter)
activeChildrenScopes.add(viewScope)
} else if (activeChildrenScopes.size == 0) {
} else if (activeChildrenScopes.count { it.isActive() } == 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename activeChildrenScopes field somehow? Or use other naming for isActive? Because with that change it introduces some ambiguity: basically this line says that activeChildrenScopes can contain some scope which is not actually active (and activeChildrenScopes was filtered just few lines above).

Or we can introduce set of states for RumScope: active, stopping, stopped or something like this. WDYT?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed I'll rename activeChildrenScopes -> childrenScopes

@xgouchet xgouchet added the size-medium This PR is medium sized label Mar 16, 2022
@codecov-commenter

codecov-commenter commented Mar 16, 2022

Copy link
Copy Markdown

Codecov Report

Merging #871 (dec69c4) into release/1.12.0 (6b500d6) will decrease coverage by 0.25%.
The diff coverage is 93.33%.

@@                Coverage Diff                 @@
##           release/1.12.0     #871      +/-   ##
==================================================
- Coverage           80.44%   80.19%   -0.25%     
==================================================
  Files                 254      254              
  Lines                8533     8547      +14     
  Branches             1458     1463       +5     
==================================================
- Hits                 6864     6854      -10     
- Misses               1323     1342      +19     
- Partials              346      351       +5     
Impacted Files Coverage Δ
...droid/rum/internal/domain/scope/RumSessionScope.kt 95.38% <85.71%> (-0.74%) ⬇️
...ndroid/rum/internal/domain/scope/RumActionScope.kt 96.55% <100.00%> (+0.06%) ⬆️
...d/rum/internal/domain/scope/RumApplicationScope.kt 100.00% <100.00%> (ø)
...roid/rum/internal/domain/scope/RumResourceScope.kt 97.56% <100.00%> (+0.03%) ⬆️
.../android/rum/internal/domain/scope/RumViewScope.kt 96.17% <100.00%> (+0.01%) ⬆️
.../android/rum/internal/monitor/DatadogRumMonitor.kt 89.03% <100.00%> (+0.07%) ⬆️
.../android/error/internal/DatadogExceptionHandler.kt 90.32% <0.00%> (-6.45%) ⬇️
...entracing/scopemanager/ContextualScopeManager.java 45.00% <0.00%> (-5.00%) ⬇️
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 83.73% <0.00%> (-4.82%) ⬇️
...n/kotlin/com/datadog/android/compose/Navigation.kt 64.10% <0.00%> (-4.65%) ⬇️
... and 12 more

@xgouchet
xgouchet merged commit 68200ce into release/1.12.0 Mar 16, 2022
@xgouchet
xgouchet deleted the xgouchet/RUMM-2058/missing_orphans branch March 16, 2022 15:43
@xgouchet xgouchet added this to the 1.12.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-medium This PR is medium sized size-small This PR is small sized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash Reporting Dependent on View Tracking Strategy

3 participants