@@ -447,7 +447,7 @@ func TestScopeParentChangedInheritance(t *testing.T) {
447447 assertEqual (t , User {ID : "foo" }, clone .user )
448448 assertEqual (t , r1 , clone .request )
449449 assertEqual (t , p1 , clone .propagationContext )
450- assertEqual (t , s1 , clone .span )
450+ assertEqual (t , s1 , clone .GetSpan () )
451451
452452 assertEqual (t , map [string ]string {"foo" : "baz" }, scope .tags )
453453 assertEqual (t , map [string ]Context {"foo" : {"foo" : "baz" }}, scope .contexts )
@@ -458,7 +458,7 @@ func TestScopeParentChangedInheritance(t *testing.T) {
458458 assertEqual (t , []* Attachment {{Filename : "bar.txt" , Payload : []byte ("bar" )}}, scope .attachments )
459459 assertEqual (t , User {ID : "bar" }, scope .user )
460460 assertEqual (t , r2 , scope .request )
461- assertEqual (t , s2 , scope .span )
461+ assertEqual (t , s2 , scope .GetSpan () )
462462}
463463
464464func TestScopeChildOverrideInheritance (t * testing.T ) {
@@ -517,7 +517,7 @@ func TestScopeChildOverrideInheritance(t *testing.T) {
517517 assertEqual (t , User {ID : "foo" }, clone .user )
518518 assertEqual (t , r2 , clone .request )
519519 assertEqual (t , p2 , clone .propagationContext )
520- assertEqual (t , s2 , clone .span )
520+ assertEqual (t , s2 , clone .GetSpan () )
521521
522522 assertEqual (t , map [string ]string {"foo" : "baz" }, scope .tags )
523523 assertEqual (t , map [string ]Context {"foo" : {"foo" : "baz" }}, scope .contexts )
@@ -529,7 +529,7 @@ func TestScopeChildOverrideInheritance(t *testing.T) {
529529 assertEqual (t , User {ID : "bar" }, scope .user )
530530 assertEqual (t , r1 , scope .request )
531531 assertEqual (t , p1 , scope .propagationContext )
532- assertEqual (t , s1 , scope .span )
532+ assertEqual (t , s1 , scope .GetSpan () )
533533
534534 assertEqual (t , len (scope .eventProcessors ), 1 )
535535 assertEqual (t , len (clone .eventProcessors ), 2 )
@@ -548,7 +548,7 @@ func TestClear(t *testing.T) {
548548 assertEqual (t , []string {}, scope .fingerprint )
549549 assertEqual (t , Level ("" ), scope .level )
550550 assertEqual (t , (* http .Request )(nil ), scope .request )
551- assertEqual (t , (* Span )(nil ), scope .span )
551+ assertEqual (t , (* Span )(nil ), scope .GetSpan () )
552552}
553553
554554func TestClearAndReconfigure (t * testing.T ) {
@@ -580,7 +580,7 @@ func TestClearAndReconfigure(t *testing.T) {
580580 assertEqual (t , User {ID : "foo" }, scope .user )
581581 assertEqual (t , r , scope .request )
582582 assertEqual (t , p , scope .propagationContext )
583- assertEqual (t , s , scope .span )
583+ assertEqual (t , s , scope .GetSpan () )
584584}
585585
586586func TestClearBreadcrumbs (t * testing.T ) {
0 commit comments