@@ -447,7 +447,7 @@ func TestScopeParentChangedInheritance(t *testing.T) {
447
447
assertEqual (t , User {ID : "foo" }, clone .user )
448
448
assertEqual (t , r1 , clone .request )
449
449
assertEqual (t , p1 , clone .propagationContext )
450
- assertEqual (t , s1 , clone .span )
450
+ assertEqual (t , s1 , clone .GetSpan () )
451
451
452
452
assertEqual (t , map [string ]string {"foo" : "baz" }, scope .tags )
453
453
assertEqual (t , map [string ]Context {"foo" : {"foo" : "baz" }}, scope .contexts )
@@ -458,7 +458,7 @@ func TestScopeParentChangedInheritance(t *testing.T) {
458
458
assertEqual (t , []* Attachment {{Filename : "bar.txt" , Payload : []byte ("bar" )}}, scope .attachments )
459
459
assertEqual (t , User {ID : "bar" }, scope .user )
460
460
assertEqual (t , r2 , scope .request )
461
- assertEqual (t , s2 , scope .span )
461
+ assertEqual (t , s2 , scope .GetSpan () )
462
462
}
463
463
464
464
func TestScopeChildOverrideInheritance (t * testing.T ) {
@@ -517,7 +517,7 @@ func TestScopeChildOverrideInheritance(t *testing.T) {
517
517
assertEqual (t , User {ID : "foo" }, clone .user )
518
518
assertEqual (t , r2 , clone .request )
519
519
assertEqual (t , p2 , clone .propagationContext )
520
- assertEqual (t , s2 , clone .span )
520
+ assertEqual (t , s2 , clone .GetSpan () )
521
521
522
522
assertEqual (t , map [string ]string {"foo" : "baz" }, scope .tags )
523
523
assertEqual (t , map [string ]Context {"foo" : {"foo" : "baz" }}, scope .contexts )
@@ -529,7 +529,7 @@ func TestScopeChildOverrideInheritance(t *testing.T) {
529
529
assertEqual (t , User {ID : "bar" }, scope .user )
530
530
assertEqual (t , r1 , scope .request )
531
531
assertEqual (t , p1 , scope .propagationContext )
532
- assertEqual (t , s1 , scope .span )
532
+ assertEqual (t , s1 , scope .GetSpan () )
533
533
534
534
assertEqual (t , len (scope .eventProcessors ), 1 )
535
535
assertEqual (t , len (clone .eventProcessors ), 2 )
@@ -548,7 +548,7 @@ func TestClear(t *testing.T) {
548
548
assertEqual (t , []string {}, scope .fingerprint )
549
549
assertEqual (t , Level ("" ), scope .level )
550
550
assertEqual (t , (* http .Request )(nil ), scope .request )
551
- assertEqual (t , (* Span )(nil ), scope .span )
551
+ assertEqual (t , (* Span )(nil ), scope .GetSpan () )
552
552
}
553
553
554
554
func TestClearAndReconfigure (t * testing.T ) {
@@ -580,7 +580,7 @@ func TestClearAndReconfigure(t *testing.T) {
580
580
assertEqual (t , User {ID : "foo" }, scope .user )
581
581
assertEqual (t , r , scope .request )
582
582
assertEqual (t , p , scope .propagationContext )
583
- assertEqual (t , s , scope .span )
583
+ assertEqual (t , s , scope .GetSpan () )
584
584
}
585
585
586
586
func TestClearBreadcrumbs (t * testing.T ) {
0 commit comments