You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/dd-sdk-android-rum/src/main/kotlin/com/datadog/android/rum/internal/domain/scope/RumSessionScope.kt
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -218,14 +218,13 @@ internal class RumSessionScope(
218
218
val isBackgroundEvent = event.javaClass inRumViewManagerScope.validBackgroundEventTypes
219
219
val isSdkInitInForeground = event isRumRawEvent.SdkInit&& event.isAppInForeground
220
220
val isSdkInitInBackground = event isRumRawEvent.SdkInit&&!event.isAppInForeground
221
-
val isAppStartEvent = event isRumRawEvent.AppStartTTIDEvent
222
221
223
222
// When the session is expired, time-out or stopSession API is called, session ended metric should be sent
Copy file name to clipboardExpand all lines: features/dd-sdk-android-rum/src/test/kotlin/com/datadog/android/rum/internal/domain/scope/RumSessionScopeTest.kt
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1424,7 +1424,7 @@ internal class RumSessionScopeTest {
1424
1424
1425
1425
@ParameterizedTest
1426
1426
@MethodSource("testScenarios")
1427
-
fun`M call reportTTID and create new session W handleEvent { AppLaunchTTIDEvent }`(
1427
+
fun`M call reportTTID W handleEvent { AppLaunchTTIDEvent }`(
1428
1428
scenario:RumStartupScenario,
1429
1429
forge:Forge
1430
1430
) {
@@ -1438,6 +1438,13 @@ internal class RumSessionScopeTest {
1438
1438
info = info
1439
1439
)
1440
1440
1441
+
testedScope.handleEvent(
1442
+
event = fakeInitialViewEvent,
1443
+
datadogContext = fakeDatadogContext,
1444
+
writeScope = mockEventWriteScope,
1445
+
writer = mockWriter
1446
+
)
1447
+
1441
1448
// When
1442
1449
val result = testedScope.handleEvent(
1443
1450
event = event,
@@ -1484,6 +1491,13 @@ internal class RumSessionScopeTest {
0 commit comments