@@ -176,7 +176,7 @@ describe('Tracer', () => {
176176 } ) ;
177177
178178 describe ( 'startRootSpan() with context propagation' , ( ) => {
179- const traceOptions = { name : 'rootName' , type : 'spanType' } as
179+ const traceOptions = { name : 'rootName' , kind : 'spanType' } as
180180 types . TraceOptions ;
181181
182182 it ( 'should create new RootSpan instance, no propagation' , ( ) => {
@@ -185,7 +185,7 @@ describe('Tracer', () => {
185185 tracer . startRootSpan ( traceOptions , ( rootSpan ) => {
186186 assert . ok ( rootSpan ) ;
187187 assert . strictEqual ( rootSpan . name , traceOptions . name ) ;
188- assert . strictEqual ( rootSpan . type , traceOptions . type ) ;
188+ assert . strictEqual ( rootSpan . kind , traceOptions . kind ) ;
189189 } ) ;
190190 } ) ;
191191
@@ -203,7 +203,7 @@ describe('Tracer', () => {
203203 tracer . startRootSpan ( traceOptions , ( rootSpan ) => {
204204 assert . ok ( rootSpan ) ;
205205 assert . strictEqual ( rootSpan . name , traceOptions . name ) ;
206- assert . strictEqual ( rootSpan . type , traceOptions . type ) ;
206+ assert . strictEqual ( rootSpan . kind , traceOptions . kind ) ;
207207 assert . strictEqual ( rootSpan . traceId , spanContextPropagated . traceId ) ;
208208 assert . strictEqual ( rootSpan . parentSpanId , spanContextPropagated . spanId ) ;
209209 } ) ;
@@ -216,7 +216,7 @@ describe('Tracer', () => {
216216 tracer . startRootSpan ( traceOptions , ( rootSpan ) => {
217217 assert . ok ( rootSpan ) ;
218218 assert . strictEqual ( rootSpan . name , traceOptions . name ) ;
219- assert . strictEqual ( rootSpan . type , traceOptions . type ) ;
219+ assert . strictEqual ( rootSpan . kind , traceOptions . kind ) ;
220220 assert . notEqual ( rootSpan . traceId , spanContextPropagated . traceId ) ;
221221 assert . notEqual ( rootSpan . parentSpanId , spanContextPropagated . spanId ) ;
222222 } ) ;
@@ -253,7 +253,7 @@ describe('Tracer', () => {
253253 it ( 'should start a span' , ( ) => {
254254 assert . ok ( span . started ) ;
255255 assert . strictEqual ( span . name , 'spanName' ) ;
256- assert . strictEqual ( span . type , 'spanType' ) ;
256+ assert . strictEqual ( span . kind , 'spanType' ) ;
257257 } ) ;
258258 } ) ;
259259
0 commit comments