@@ -90,8 +90,6 @@ describe('tracing', () => {
90
90
91
91
// our span is at index 1 because the transaction itself is at index 0
92
92
expect ( spanToJSON ( spans [ 1 ] ) . description ) . toEqual ( 'GET http://dogs.are.great/' ) ;
93
- // eslint-disable-next-line deprecation/deprecation
94
- expect ( spans [ 1 ] . op ) . toEqual ( 'http.client' ) ;
95
93
expect ( spanToJSON ( spans [ 1 ] ) . op ) . toEqual ( 'http.client' ) ;
96
94
} ) ;
97
95
@@ -301,8 +299,6 @@ describe('tracing', () => {
301
299
302
300
// our span is at index 1 because the transaction itself is at index 0
303
301
expect ( spanToJSON ( spans [ 1 ] ) . description ) . toEqual ( 'GET http://dogs.are.great/spaniel' ) ;
304
- // eslint-disable-next-line deprecation/deprecation
305
- expect ( spans [ 1 ] . op ) . toEqual ( 'http.client' ) ;
306
302
expect ( spanToJSON ( spans [ 1 ] ) . op ) . toEqual ( 'http.client' ) ;
307
303
308
304
const spanAttributes = spanToJSON ( spans [ 1 ] ) . data || { } ;
@@ -328,8 +324,6 @@ describe('tracing', () => {
328
324
329
325
// our span is at index 1 because the transaction itself is at index 0
330
326
expect ( spanToJSON ( spans [ 1 ] ) . description ) . toEqual ( 'GET http://dogs.are.great/spaniel' ) ;
331
- // eslint-disable-next-line deprecation/deprecation
332
- expect ( spans [ 1 ] . op ) . toEqual ( 'http.client' ) ;
333
327
expect ( spanToJSON ( spans [ 1 ] ) . op ) . toEqual ( 'http.client' ) ;
334
328
expect ( spanAttributes [ 'http.method' ] ) . toEqual ( 'GET' ) ;
335
329
expect ( spanAttributes . url ) . toEqual ( 'http://dogs.are.great/spaniel' ) ;
@@ -413,8 +407,7 @@ describe('tracing', () => {
413
407
const request = http . get ( url ) ;
414
408
415
409
// There should be no http spans
416
- // eslint-disable-next-line deprecation/deprecation
417
- const httpSpans = spans . filter ( span => span . op ?. startsWith ( 'http' ) ) ;
410
+ const httpSpans = spans . filter ( span => spanToJSON ( span ) . op ?. startsWith ( 'http' ) ) ;
418
411
expect ( httpSpans . length ) . toBe ( 0 ) ;
419
412
420
413
// And headers are not attached without span creation
@@ -523,8 +516,7 @@ describe('tracing', () => {
523
516
const request = http . get ( url ) ;
524
517
525
518
// There should be no http spans
526
- // eslint-disable-next-line deprecation/deprecation
527
- const httpSpans = spans . filter ( span => span . op ?. startsWith ( 'http' ) ) ;
519
+ const httpSpans = spans . filter ( span => spanToJSON ( span ) . op ?. startsWith ( 'http' ) ) ;
528
520
expect ( httpSpans . length ) . toBe ( 0 ) ;
529
521
530
522
// And headers are not attached without span creation
0 commit comments