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-webview/src/main/kotlin/com/datadog/android/webview/internal/log/WebViewLogEventConsumer.kt
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,13 +53,18 @@ internal class WebViewLogEventConsumer(
Copy file name to clipboardExpand all lines: features/dd-sdk-android-webview/src/main/kotlin/com/datadog/android/webview/internal/rum/WebViewRumEventConsumer.kt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,13 @@ internal class WebViewRumEventConsumer(
65
65
try {
66
66
val timeOffset = event.get(VIEW_KEY_NAME)?.asJsonObject?.get(VIEW_ID_KEY_NAME)
Copy file name to clipboardExpand all lines: features/dd-sdk-android-webview/src/main/kotlin/com/datadog/android/webview/internal/rum/WebViewRumEventMapper.kt
Copy file name to clipboardExpand all lines: features/dd-sdk-android-webview/src/test/kotlin/com/datadog/android/webview/internal/log/WebViewLogEventConsumerTest.kt
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,7 @@ internal class WebViewLogEventConsumerTest {
Copy file name to clipboardExpand all lines: features/dd-sdk-android-webview/src/test/kotlin/com/datadog/android/webview/internal/rum/WebViewRumEventConsumerTest.kt
+40-20Lines changed: 40 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,8 @@ internal class WebViewRumEventConsumerTest {
196
196
fakeViewEventAsJson,
197
197
fakeRumContext,
198
198
fakeServerTimeOffsetInMillis,
199
-
fakeSessionReplayEnabled
199
+
fakeSessionReplayEnabled,
200
+
fakeDatadogContext.userInfo
200
201
)
201
202
).thenReturn(fakeMappedViewEvent)
202
203
@@ -222,7 +223,8 @@ internal class WebViewRumEventConsumerTest {
222
223
fakeViewEventAsJson,
223
224
fakeRumContext,
224
225
fakeServerTimeOffsetInMillis,
225
-
fakeSessionReplayEnabled
226
+
fakeSessionReplayEnabled,
227
+
fakeDatadogContext.userInfo
226
228
)
227
229
).thenReturn(fakeMappedViewEvent)
228
230
@@ -244,7 +246,8 @@ internal class WebViewRumEventConsumerTest {
244
246
fakeViewEventAsJson,
245
247
null,
246
248
fakeServerTimeOffsetInMillis,
247
-
fakeSessionReplayEnabled
249
+
fakeSessionReplayEnabled,
250
+
fakeDatadogContext.userInfo
248
251
)
249
252
).thenReturn(fakeMappedViewEvent)
250
253
@@ -273,7 +276,8 @@ internal class WebViewRumEventConsumerTest {
273
276
fakeActionEventAsJson,
274
277
fakeRumContext,
275
278
fakeServerTimeOffsetInMillis,
276
-
fakeSessionReplayEnabled
279
+
fakeSessionReplayEnabled,
280
+
fakeDatadogContext.userInfo
277
281
)
278
282
).thenReturn(fakeMappedActionEvent)
279
283
@@ -298,7 +302,8 @@ internal class WebViewRumEventConsumerTest {
298
302
fakeActionEventAsJson,
299
303
fakeRumContext,
300
304
fakeServerTimeOffsetInMillis,
301
-
fakeSessionReplayEnabled
305
+
fakeSessionReplayEnabled,
306
+
fakeDatadogContext.userInfo
302
307
)
303
308
).thenReturn(fakeMappedActionEvent)
304
309
@@ -320,7 +325,8 @@ internal class WebViewRumEventConsumerTest {
320
325
fakeActionEventAsJson,
321
326
null,
322
327
fakeServerTimeOffsetInMillis,
323
-
fakeSessionReplayEnabled
328
+
fakeSessionReplayEnabled,
329
+
fakeDatadogContext.userInfo
324
330
)
325
331
).thenReturn(fakeMappedActionEvent)
326
332
@@ -349,7 +355,8 @@ internal class WebViewRumEventConsumerTest {
349
355
fakeResourceEventAsJson,
350
356
fakeRumContext,
351
357
fakeServerTimeOffsetInMillis,
352
-
fakeSessionReplayEnabled
358
+
fakeSessionReplayEnabled,
359
+
fakeDatadogContext.userInfo
353
360
)
354
361
).thenReturn(fakeMappedResourceEvent)
355
362
@@ -374,7 +381,8 @@ internal class WebViewRumEventConsumerTest {
374
381
fakeResourceEventAsJson,
375
382
fakeRumContext,
376
383
fakeServerTimeOffsetInMillis,
377
-
fakeSessionReplayEnabled
384
+
fakeSessionReplayEnabled,
385
+
fakeDatadogContext.userInfo
378
386
)
379
387
).thenReturn(fakeMappedResourceEvent)
380
388
@@ -396,7 +404,8 @@ internal class WebViewRumEventConsumerTest {
396
404
fakeResourceEventAsJson,
397
405
null,
398
406
fakeServerTimeOffsetInMillis,
399
-
fakeSessionReplayEnabled
407
+
fakeSessionReplayEnabled,
408
+
fakeDatadogContext.userInfo
400
409
)
401
410
).thenReturn(fakeMappedResourceEvent)
402
411
@@ -425,7 +434,8 @@ internal class WebViewRumEventConsumerTest {
425
434
fakeErrorEventAsJson,
426
435
fakeRumContext,
427
436
fakeServerTimeOffsetInMillis,
428
-
fakeSessionReplayEnabled
437
+
fakeSessionReplayEnabled,
438
+
fakeDatadogContext.userInfo
429
439
)
430
440
).thenReturn(fakeMappedErrorEvent)
431
441
@@ -450,7 +460,8 @@ internal class WebViewRumEventConsumerTest {
450
460
fakeErrorEventAsJson,
451
461
fakeRumContext,
452
462
fakeServerTimeOffsetInMillis,
453
-
fakeSessionReplayEnabled
463
+
fakeSessionReplayEnabled,
464
+
fakeDatadogContext.userInfo
454
465
)
455
466
).thenReturn(fakeMappedErrorEvent)
456
467
@@ -472,7 +483,8 @@ internal class WebViewRumEventConsumerTest {
472
483
fakeErrorEventAsJson,
473
484
null,
474
485
fakeServerTimeOffsetInMillis,
475
-
fakeSessionReplayEnabled
486
+
fakeSessionReplayEnabled,
487
+
fakeDatadogContext.userInfo
476
488
)
477
489
).thenReturn(fakeMappedErrorEvent)
478
490
@@ -501,7 +513,8 @@ internal class WebViewRumEventConsumerTest {
501
513
fakeLongTaskEventAsJson,
502
514
fakeRumContext,
503
515
fakeServerTimeOffsetInMillis,
504
-
fakeSessionReplayEnabled
516
+
fakeSessionReplayEnabled,
517
+
fakeDatadogContext.userInfo
505
518
)
506
519
).thenReturn(fakeMappedLongTaskEvent)
507
520
@@ -526,7 +539,8 @@ internal class WebViewRumEventConsumerTest {
526
539
fakeLongTaskEventAsJson,
527
540
fakeRumContext,
528
541
fakeServerTimeOffsetInMillis,
529
-
fakeSessionReplayEnabled
542
+
fakeSessionReplayEnabled,
543
+
fakeDatadogContext.userInfo
530
544
)
531
545
)
532
546
.thenReturn(fakeMappedLongTaskEvent)
@@ -549,7 +563,8 @@ internal class WebViewRumEventConsumerTest {
549
563
fakeLongTaskEventAsJson,
550
564
null,
551
565
fakeServerTimeOffsetInMillis,
552
-
fakeSessionReplayEnabled
566
+
fakeSessionReplayEnabled,
567
+
fakeDatadogContext.userInfo
553
568
)
554
569
).thenReturn(fakeMappedLongTaskEvent)
555
570
@@ -577,7 +592,8 @@ internal class WebViewRumEventConsumerTest {
577
592
fakeRumEvent,
578
593
fakeRumContext,
579
594
fakeServerTimeOffsetInMillis,
580
-
fakeSessionReplayEnabled
595
+
fakeSessionReplayEnabled,
596
+
fakeDatadogContext.userInfo
581
597
)
582
598
).thenThrow(fakeException)
583
599
@@ -598,7 +614,8 @@ internal class WebViewRumEventConsumerTest {
598
614
fakeRumEvent,
599
615
fakeRumContext,
600
616
fakeServerTimeOffsetInMillis,
601
-
fakeSessionReplayEnabled
617
+
fakeSessionReplayEnabled,
618
+
fakeDatadogContext.userInfo
602
619
)
603
620
).thenThrow(fakeException)
604
621
@@ -625,7 +642,8 @@ internal class WebViewRumEventConsumerTest {
625
642
fakeRumEvent,
626
643
fakeRumContext,
627
644
0,
628
-
fakeSessionReplayEnabled
645
+
fakeSessionReplayEnabled,
646
+
fakeDatadogContext.userInfo
629
647
)
630
648
).thenReturn(fakeMappedRumEvent)
631
649
@@ -648,7 +666,8 @@ internal class WebViewRumEventConsumerTest {
648
666
fakeRumEvent,
649
667
fakeRumContext,
650
668
0,
651
-
fakeSessionReplayEnabled
669
+
fakeSessionReplayEnabled,
670
+
fakeDatadogContext.userInfo
652
671
)
653
672
).thenReturn(fakeMappedRumEvent)
654
673
@@ -671,7 +690,8 @@ internal class WebViewRumEventConsumerTest {
0 commit comments