@@ -541,7 +541,7 @@ class ScopeManagerTest extends DDCoreSpecification {
541
541
542
542
def " closing scope out of order - complex" () {
543
543
// Events are checked twice in each case to ensure a call to
544
- // tracer.activeScope () or tracer.activeSpan() doesn't change the count
544
+ // scopeManager.active () or tracer.activeSpan() doesn't change the count
545
545
546
546
when :
547
547
AgentSpan firstSpan = tracer. buildSpan(" test" , " foo" ). start()
@@ -550,7 +550,7 @@ class ScopeManagerTest extends DDCoreSpecification {
550
550
then :
551
551
assertEvents([ACTIVATE ])
552
552
tracer. activeSpan() == firstSpan
553
- tracer . activeScope () == firstScope
553
+ scopeManager . active () == firstScope
554
554
assertEvents([ACTIVATE ])
555
555
1 * profilingContext. onRootSpanStarted(_)
556
556
1 * profilingContext. onAttach()
@@ -565,7 +565,7 @@ class ScopeManagerTest extends DDCoreSpecification {
565
565
then :
566
566
assertEvents([ACTIVATE , ACTIVATE ])
567
567
tracer. activeSpan() == secondSpan
568
- tracer . activeScope () == secondScope
568
+ scopeManager . active () == secondScope
569
569
assertEvents([ACTIVATE , ACTIVATE ])
570
570
1 * profilingContext. encodeOperationName(" bar" )
571
571
1 * profilingContext. newScopeState(_) >> Stub (Stateful )
@@ -578,7 +578,7 @@ class ScopeManagerTest extends DDCoreSpecification {
578
578
then :
579
579
assertEvents([ACTIVATE , ACTIVATE , ACTIVATE ])
580
580
tracer. activeSpan() == thirdSpan
581
- tracer . activeScope () == thirdScope
581
+ scopeManager . active () == thirdScope
582
582
assertEvents([ACTIVATE , ACTIVATE , ACTIVATE ])
583
583
1 * profilingContext. encodeOperationName(" quux" )
584
584
1 * profilingContext. newScopeState(_) >> Stub (Stateful )
@@ -590,7 +590,7 @@ class ScopeManagerTest extends DDCoreSpecification {
590
590
then :
591
591
assertEvents([ACTIVATE , ACTIVATE , ACTIVATE ])
592
592
tracer. activeSpan() == thirdSpan
593
- tracer . activeScope () == thirdScope
593
+ scopeManager . active () == thirdScope
594
594
assertEvents([ACTIVATE , ACTIVATE , ACTIVATE ])
595
595
0 * _
596
596
@@ -600,7 +600,7 @@ class ScopeManagerTest extends DDCoreSpecification {
600
600
then :
601
601
assertEvents([ACTIVATE , ACTIVATE , ACTIVATE , CLOSE , CLOSE , ACTIVATE ])
602
602
tracer. activeSpan() == firstSpan
603
- tracer . activeScope () == firstScope
603
+ scopeManager . active () == firstScope
604
604
605
605
assertEvents([ACTIVATE , ACTIVATE , ACTIVATE , CLOSE , CLOSE , ACTIVATE ])
606
606
0 * _
@@ -618,7 +618,7 @@ class ScopeManagerTest extends DDCoreSpecification {
618
618
ACTIVATE ,
619
619
CLOSE
620
620
])
621
- tracer . activeScope () == null
621
+ scopeManager . active () == null
622
622
assertEvents([
623
623
ACTIVATE ,
624
624
ACTIVATE ,
@@ -656,7 +656,7 @@ class ScopeManagerTest extends DDCoreSpecification {
656
656
then :
657
657
assertEvents([ACTIVATE , ACTIVATE ])
658
658
tracer. activeSpan() == thirdSpan
659
- tracer . activeScope () == thirdScope
659
+ scopeManager . active () == thirdScope
660
660
assertEvents([ACTIVATE , ACTIVATE ])
661
661
1 * profilingContext. encodeOperationName(" quux" )
662
662
1 * profilingContext. newScopeState(_) >> Stub (Stateful )
0 commit comments