@@ -323,11 +323,10 @@ class ActivityLifecycleIntegrationTest {
323323
324324 @Test
325325 fun `extendAppStart eagerly creates a standalone app start transaction with the extended span` () {
326- val sut =
327- fixture.getSut {
328- it.tracesSampleRate = 1.0
329- it.isEnableStandaloneAppStartTracing = true
330- }
326+ val sut = fixture.getSut {
327+ it.tracesSampleRate = 1.0
328+ it.isEnableStandaloneAppStartTracing = true
329+ }
331330 sut.register(fixture.scopes, fixture.options)
332331
333332 setAppStartTime()
@@ -348,11 +347,10 @@ class ActivityLifecycleIntegrationTest {
348347
349348 @Test
350349 fun `extended app start continues the trace into ui load without a second app start transaction` () {
351- val sut =
352- fixture.getSut {
353- it.tracesSampleRate = 1.0
354- it.isEnableStandaloneAppStartTracing = true
355- }
350+ val sut = fixture.getSut {
351+ it.tracesSampleRate = 1.0
352+ it.isEnableStandaloneAppStartTracing = true
353+ }
356354 sut.register(fixture.scopes, fixture.options)
357355
358356 setAppStartTime()
@@ -379,11 +377,10 @@ class ActivityLifecycleIntegrationTest {
379377
380378 @Test
381379 fun `extended app start trace is not reused by a later activity` () {
382- val sut =
383- fixture.getSut {
384- it.tracesSampleRate = 1.0
385- it.isEnableStandaloneAppStartTracing = true
386- }
380+ val sut = fixture.getSut {
381+ it.tracesSampleRate = 1.0
382+ it.isEnableStandaloneAppStartTracing = true
383+ }
387384 sut.register(fixture.scopes, fixture.options)
388385
389386 setAppStartTime()
@@ -409,11 +406,10 @@ class ActivityLifecycleIntegrationTest {
409406
410407 @Test
411408 fun `extended app start screen is not overwritten by a later activity` () {
412- val sut =
413- fixture.getSut {
414- it.tracesSampleRate = 1.0
415- it.isEnableStandaloneAppStartTracing = true
416- }
409+ val sut = fixture.getSut {
410+ it.tracesSampleRate = 1.0
411+ it.isEnableStandaloneAppStartTracing = true
412+ }
417413 sut.register(fixture.scopes, fixture.options)
418414
419415 setAppStartTime()
@@ -434,11 +430,10 @@ class ActivityLifecycleIntegrationTest {
434430
435431 @Test
436432 fun `extended standalone app start transaction stays open until finishExtendedAppStart` () {
437- val sut =
438- fixture.getSut {
439- it.tracesSampleRate = 1.0
440- it.isEnableStandaloneAppStartTracing = true
441- }
433+ val sut = fixture.getSut {
434+ it.tracesSampleRate = 1.0
435+ it.isEnableStandaloneAppStartTracing = true
436+ }
442437 sut.register(fixture.scopes, fixture.options)
443438
444439 setAppStartTime()
@@ -461,11 +456,10 @@ class ActivityLifecycleIntegrationTest {
461456
462457 @Test
463458 fun `extended headless app start transaction stays open until finishExtendedAppStart` () {
464- val sut =
465- fixture.getSut {
466- it.tracesSampleRate = 1.0
467- it.isEnableStandaloneAppStartTracing = true
468- }
459+ val sut = fixture.getSut {
460+ it.tracesSampleRate = 1.0
461+ it.isEnableStandaloneAppStartTracing = true
462+ }
469463 sut.register(fixture.scopes, fixture.options)
470464
471465 prepareHeadlessAppStart(appStartType = AppStartType .COLD )
@@ -487,11 +481,10 @@ class ActivityLifecycleIntegrationTest {
487481
488482 @Test
489483 fun `extended headless app start persists the app start end time` () {
490- val sut =
491- fixture.getSut {
492- it.tracesSampleRate = 1.0
493- it.isEnableStandaloneAppStartTracing = true
494- }
484+ val sut = fixture.getSut {
485+ it.tracesSampleRate = 1.0
486+ it.isEnableStandaloneAppStartTracing = true
487+ }
495488 sut.register(fixture.scopes, fixture.options)
496489
497490 prepareHeadlessAppStart(appStartType = AppStartType .COLD )
@@ -504,11 +497,10 @@ class ActivityLifecycleIntegrationTest {
504497
505498 @Test
506499 fun `finished eager extended app start persists the app start end time` () {
507- val sut =
508- fixture.getSut {
509- it.tracesSampleRate = 1.0
510- it.isEnableStandaloneAppStartTracing = true
511- }
500+ val sut = fixture.getSut {
501+ it.tracesSampleRate = 1.0
502+ it.isEnableStandaloneAppStartTracing = true
503+ }
512504 sut.register(fixture.scopes, fixture.options)
513505
514506 setAppStartTime()
@@ -523,11 +515,10 @@ class ActivityLifecycleIntegrationTest {
523515
524516 @Test
525517 fun `activity long after the eager extended app start finished starts a fresh trace` () {
526- val sut =
527- fixture.getSut {
528- it.tracesSampleRate = 1.0
529- it.isEnableStandaloneAppStartTracing = true
530- }
518+ val sut = fixture.getSut {
519+ it.tracesSampleRate = 1.0
520+ it.isEnableStandaloneAppStartTracing = true
521+ }
531522 sut.register(fixture.scopes, fixture.options)
532523
533524 // the eager extension starts at launch and finishes before any activity exists
@@ -555,11 +546,10 @@ class ActivityLifecycleIntegrationTest {
555546
556547 @Test
557548 fun `extended headless app start does not create a duplicate when the extension already finished` () {
558- val sut =
559- fixture.getSut {
560- it.tracesSampleRate = 1.0
561- it.isEnableStandaloneAppStartTracing = true
562- }
549+ val sut = fixture.getSut {
550+ it.tracesSampleRate = 1.0
551+ it.isEnableStandaloneAppStartTracing = true
552+ }
563553 sut.register(fixture.scopes, fixture.options)
564554
565555 prepareHeadlessAppStart(appStartType = AppStartType .COLD )
@@ -588,11 +578,10 @@ class ActivityLifecycleIntegrationTest {
588578
589579 @Test
590580 fun `extended app start transaction is owned by the extension and survives activity destroy` () {
591- val sut =
592- fixture.getSut {
593- it.tracesSampleRate = 1.0
594- it.isEnableStandaloneAppStartTracing = true
595- }
581+ val sut = fixture.getSut {
582+ it.tracesSampleRate = 1.0
583+ it.isEnableStandaloneAppStartTracing = true
584+ }
596585 sut.register(fixture.scopes, fixture.options)
597586
598587 setAppStartTime()
0 commit comments