@@ -44,7 +44,7 @@ describe('Span', () => {
4444 describe ( 'new Span()' , ( ) => {
4545 it ( 'should create a Span instance' , ( ) => {
4646 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
47- const span = new Span ( rootSpan ) ;
47+ const span = new Span ( tracer , rootSpan ) ;
4848 assert . ok ( span instanceof Span ) ;
4949 } ) ;
5050 } ) ;
@@ -56,7 +56,7 @@ describe('Span', () => {
5656 it ( 'should return the trace id' , ( ) => {
5757 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
5858 rootSpan . start ( ) ;
59- const span = new Span ( rootSpan ) ;
59+ const span = new Span ( tracer , rootSpan ) ;
6060 assert . equal ( span . traceId , rootSpan . traceId ) ;
6161 } ) ;
6262 } ) ;
@@ -69,7 +69,7 @@ describe('Span', () => {
6969 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
7070 rootSpan . start ( ) ;
7171
72- const span = new Span ( rootSpan ) ;
72+ const span = new Span ( tracer , rootSpan ) ;
7373 const context = span . spanContext ;
7474
7575 assert . equal ( context . traceId , rootSpan . traceId ) ;
@@ -87,7 +87,7 @@ describe('Span', () => {
8787 before ( ( ) => {
8888 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
8989 rootSpan . start ( ) ;
90- span = new Span ( rootSpan ) ;
90+ span = new Span ( tracer , rootSpan ) ;
9191 } ) ;
9292 it ( 'should get startTime()' , ( ) => {
9393 assert . ok ( span . startTime ) ;
@@ -108,7 +108,7 @@ describe('Span', () => {
108108 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
109109 rootSpan . start ( ) ;
110110
111- const span = new Span ( rootSpan ) ;
111+ const span = new Span ( tracer , rootSpan ) ;
112112 span . start ( ) ;
113113
114114 assert . ok ( span . started ) ;
@@ -122,7 +122,7 @@ describe('Span', () => {
122122 it ( 'should not change the initial startTime' , ( ) => {
123123 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
124124 rootSpan . start ( ) ;
125- const span = new Span ( rootSpan ) ;
125+ const span = new Span ( tracer , rootSpan ) ;
126126 span . start ( ) ;
127127 const initialStartTime = span . startTime ;
128128 span . start ( ) ;
@@ -139,7 +139,7 @@ describe('Span', () => {
139139 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
140140 rootSpan . start ( ) ;
141141
142- const span = new Span ( rootSpan ) ;
142+ const span = new Span ( tracer , rootSpan ) ;
143143 span . start ( ) ;
144144 span . end ( ) ;
145145
@@ -155,7 +155,7 @@ describe('Span', () => {
155155 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
156156 rootSpan . start ( ) ;
157157
158- const span = new Span ( rootSpan ) ;
158+ const span = new Span ( tracer , rootSpan ) ;
159159 span . end ( ) ;
160160
161161 assert . ok ( ! span . ended ) ;
@@ -169,7 +169,7 @@ describe('Span', () => {
169169 it ( 'should not change the endTime' , ( ) => {
170170 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
171171 rootSpan . start ( ) ;
172- const span = new Span ( rootSpan ) ;
172+ const span = new Span ( tracer , rootSpan ) ;
173173 span . start ( ) ;
174174 span . end ( ) ;
175175 const initialEndTime = span . endTime ;
@@ -187,7 +187,7 @@ describe('Span', () => {
187187 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
188188 rootSpan . start ( ) ;
189189
190- const span = new Span ( rootSpan ) ;
190+ const span = new Span ( tracer , rootSpan ) ;
191191 span . start ( ) ;
192192
193193 [ 'String' , 'Number' , 'Boolean' ] . map ( attType => {
@@ -205,7 +205,7 @@ describe('Span', () => {
205205 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
206206 rootSpan . start ( ) ;
207207
208- const span = new Span ( rootSpan ) ;
208+ const span = new Span ( tracer , rootSpan ) ;
209209 span . start ( ) ;
210210 for ( let i = 0 ; i < 40 ; i ++ ) {
211211 span . addAttribute ( 'attr' + i , 100 ) ;
@@ -230,7 +230,7 @@ describe('Span', () => {
230230 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
231231 rootSpan . start ( ) ;
232232
233- const span = new Span ( rootSpan ) ;
233+ const span = new Span ( tracer , rootSpan ) ;
234234 span . start ( ) ;
235235
236236 span . addAnnotation ( 'description test' , { } as Attributes , Date . now ( ) ) ;
@@ -244,7 +244,7 @@ describe('Span', () => {
244244 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
245245 rootSpan . start ( ) ;
246246
247- const span = new Span ( rootSpan ) ;
247+ const span = new Span ( tracer , rootSpan ) ;
248248 span . start ( ) ;
249249 for ( let i = 0 ; i < 40 ; i ++ ) {
250250 span . addAnnotation ( 'description test' , { } as Attributes , Date . now ( ) ) ;
@@ -268,7 +268,7 @@ describe('Span', () => {
268268 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
269269 rootSpan . start ( ) ;
270270
271- const span = new Span ( rootSpan ) ;
271+ const span = new Span ( tracer , rootSpan ) ;
272272 span . start ( ) ;
273273
274274 span . addLink (
@@ -282,7 +282,7 @@ describe('Span', () => {
282282 it ( 'should drop extra links' , ( ) => {
283283 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
284284 rootSpan . start ( ) ;
285- const span = new Span ( rootSpan ) ;
285+ const span = new Span ( tracer , rootSpan ) ;
286286 span . start ( ) ;
287287
288288 for ( let i = 0 ; i < 35 ; i ++ ) {
@@ -308,7 +308,7 @@ describe('Span', () => {
308308 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
309309 rootSpan . start ( ) ;
310310
311- const span = new Span ( rootSpan ) ;
311+ const span = new Span ( tracer , rootSpan ) ;
312312 span . start ( ) ;
313313
314314 span . addMessageEvent (
@@ -332,7 +332,7 @@ describe('Span', () => {
332332 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
333333 rootSpan . start ( ) ;
334334
335- const span = new Span ( rootSpan ) ;
335+ const span = new Span ( tracer , rootSpan ) ;
336336 span . start ( ) ;
337337 for ( let i = 0 ; i < 35 ; i ++ ) {
338338 span . addMessageEvent ( types . MessageEventType . UNSPECIFIED , 1 ) ;
@@ -348,7 +348,7 @@ describe('Span', () => {
348348 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
349349 rootSpan . start ( ) ;
350350
351- const span = new Span ( rootSpan ) ;
351+ const span = new Span ( tracer , rootSpan ) ;
352352 span . start ( ) ;
353353
354354 assert . equal ( rootSpan . status . code , 0 ) ;
@@ -360,7 +360,7 @@ describe('Span', () => {
360360 it ( 'should set an error status' , ( ) => {
361361 const rootSpan = new RootSpan ( tracer , name , kind , traceId , parentSpanId ) ;
362362 rootSpan . start ( ) ;
363- const span = new Span ( rootSpan ) ;
363+ const span = new Span ( tracer , rootSpan ) ;
364364 span . start ( ) ;
365365 span . setStatus ( types . CanonicalCode . PERMISSION_DENIED , 'This is an error' ) ;
366366
0 commit comments