File tree 1 file changed +3
-0
lines changed
packages/opentelemetry-instrumentation-http/src
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -326,17 +326,20 @@ export class HttpInstrumentation extends InstrumentationBase<Http> {
326
326
this . _closeHttpSpan ( span ) ;
327
327
} ) ;
328
328
response . on ( 'error' , ( error : Err ) => {
329
+ this . _diag . debug ( 'outgoingRequest on error()' , error ) ;
329
330
utils . setSpanWithError ( span , error , response ) ;
330
331
this . _closeHttpSpan ( span ) ;
331
332
} ) ;
332
333
}
333
334
) ;
334
335
request . on ( 'close' , ( ) => {
336
+ this . _diag . debug ( 'outgoingRequest on request close()' ) ;
335
337
if ( ! request . aborted ) {
336
338
this . _closeHttpSpan ( span ) ;
337
339
}
338
340
} ) ;
339
341
request . on ( 'error' , ( error : Err ) => {
342
+ this . _diag . debug ( 'outgoingRequest on request error()' , error ) ;
340
343
utils . setSpanWithError ( span , error , request ) ;
341
344
this . _closeHttpSpan ( span ) ;
342
345
} ) ;
You can’t perform that action at this time.
0 commit comments