File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/node/src/integrations Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,10 @@ function _createWrappedRequestMethodFactory(
187
187
188
188
const scope = getCurrentHub ( ) . getScope ( ) ;
189
189
190
+ const method = requestOptions . method || 'GET' ;
190
191
const requestSpanData : SanitizedRequestData = {
191
192
url : requestUrl ,
192
- 'http.method' : requestOptions . method || 'GET' ,
193
+ 'http.method' : method ,
193
194
} ;
194
195
if ( requestOptions . hash ) {
195
196
// strip leading "#"
@@ -205,7 +206,7 @@ function _createWrappedRequestMethodFactory(
205
206
206
207
if ( parentSpan ) {
207
208
requestSpan = parentSpan . startChild ( {
208
- description : `${ requestSpanData . method } ${ requestSpanData . url } ` ,
209
+ description : `${ method } ${ requestSpanData . url } ` ,
209
210
op : 'http.client' ,
210
211
data : requestSpanData ,
211
212
} ) ;
You can’t perform that action at this time.
0 commit comments