File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/tracing-internal Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ export function fetchCallback(
195
195
data : {
196
196
...handlerData . fetchData ,
197
197
type : 'fetch' ,
198
+ 'http.method' : handlerData . fetchData . method ,
198
199
} ,
199
200
description : `${ handlerData . fetchData . method } ${ handlerData . fetchData . url } ` ,
200
201
op : 'http.client' ,
@@ -334,7 +335,7 @@ export function xhrCallback(
334
335
data : {
335
336
...sentryXhrData . data ,
336
337
type : 'xhr' ,
337
- method : sentryXhrData . method ,
338
+ 'http. method' : sentryXhrData . method ,
338
339
url : sentryXhrData . url ,
339
340
} ,
340
341
description : `${ sentryXhrData . method } ${ sentryXhrData . url } ` ,
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ describe('callbacks', () => {
74
74
75
75
const fetchSpan = {
76
76
data : {
77
- method : 'GET' ,
77
+ 'http. method' : 'GET' ,
78
78
url : 'http://dogs.are.great/' ,
79
79
type : 'fetch' ,
80
80
} ,
@@ -156,7 +156,7 @@ describe('callbacks', () => {
156
156
expect ( newSpan ) . toBeDefined ( ) ;
157
157
expect ( newSpan ) . toBeInstanceOf ( Span ) ;
158
158
expect ( newSpan . data ) . toEqual ( {
159
- method : 'GET' ,
159
+ 'http. method' : 'GET' ,
160
160
type : 'fetch' ,
161
161
url : 'http://dogs.are.great/' ,
162
162
} ) ;
@@ -220,7 +220,7 @@ describe('callbacks', () => {
220
220
221
221
const xhrSpan = {
222
222
data : {
223
- method : 'GET' ,
223
+ 'http. method' : 'GET' ,
224
224
url : 'http://dogs.are.great/' ,
225
225
type : 'xhr' ,
226
226
} ,
@@ -295,7 +295,7 @@ describe('callbacks', () => {
295
295
296
296
expect ( newSpan ) . toBeInstanceOf ( Span ) ;
297
297
expect ( newSpan . data ) . toEqual ( {
298
- method : 'GET' ,
298
+ 'http. method' : 'GET' ,
299
299
type : 'xhr' ,
300
300
url : 'http://dogs.are.great/' ,
301
301
} ) ;
You can’t perform that action at this time.
0 commit comments