@@ -40,6 +40,9 @@ def test_get_request(self):
4040 assert_equals (None , second_span .error )
4141 assert_equals (None , second_span .ec )
4242
43+ assert_equals (second_span .t , first_span .t )
44+ assert_equals (second_span .p , first_span .s )
45+
4346 def test_put_request (self ):
4447 span = tracer .start_span ("test" )
4548 r = self .http .request ('PUT' , 'http://127.0.0.1:5000/notfound' )
@@ -60,6 +63,9 @@ def test_put_request(self):
6063 assert_equals (None , second_span .error )
6164 assert_equals (None , second_span .ec )
6265
66+ assert_equals (second_span .t , first_span .t )
67+ assert_equals (second_span .p , first_span .s )
68+
6369 def test_5xx_request (self ):
6470 span = tracer .start_span ("test" )
6571 r = self .http .request ('GET' , 'http://127.0.0.1:5000/504' )
@@ -80,6 +86,9 @@ def test_5xx_request(self):
8086 assert_equals (True , second_span .error )
8187 assert_equals (1 , second_span .ec )
8288
89+ assert_equals (second_span .t , first_span .t )
90+ assert_equals (second_span .p , first_span .s )
91+
8392 def test_exception_logging (self ):
8493 span = tracer .start_span ("test" )
8594 try :
@@ -104,6 +113,9 @@ def test_exception_logging(self):
104113 assert_equals (True , second_span .error )
105114 assert_equals (1 , second_span .ec )
106115
116+ assert_equals (second_span .t , first_span .t )
117+ assert_equals (second_span .p , first_span .s )
118+
107119 def test_client_error (self ):
108120 span = tracer .start_span ("test" )
109121
@@ -130,3 +142,6 @@ def test_client_error(self):
130142 assert_equals ("GET" , second_span .data .http .method )
131143 assert_equals (True , second_span .error )
132144 assert_equals (1 , second_span .ec )
145+
146+ assert_equals (second_span .t , first_span .t )
147+ assert_equals (second_span .p , first_span .s )
0 commit comments