Skip to content

Commit 3ed4e23

Browse files
authored
Merge 915da21 into feea516
2 parents feea516 + 915da21 commit 3ed4e23

File tree

1 file changed

+3
-0
lines changed
  • packages/opentelemetry-instrumentation-http/src

1 file changed

+3
-0
lines changed

packages/opentelemetry-instrumentation-http/src/http.ts

+3
Original file line numberDiff line numberDiff line change
@@ -326,17 +326,20 @@ export class HttpInstrumentation extends InstrumentationBase<Http> {
326326
this._closeHttpSpan(span);
327327
});
328328
response.on('error', (error: Err) => {
329+
this._diag.debug('outgoingRequest on error()', error);
329330
utils.setSpanWithError(span, error, response);
330331
this._closeHttpSpan(span);
331332
});
332333
}
333334
);
334335
request.on('close', () => {
336+
this._diag.debug('outgoingRequest on request close()');
335337
if (!request.aborted) {
336338
this._closeHttpSpan(span);
337339
}
338340
});
339341
request.on('error', (error: Err) => {
342+
this._diag.debug('outgoingRequest on request error()', error);
340343
utils.setSpanWithError(span, error, request);
341344
this._closeHttpSpan(span);
342345
});

0 commit comments

Comments
 (0)