Skip to content

Commit

Permalink
Fix event name
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 30, 2023
1 parent 762a65a commit bf8ee62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class HttpInstrumentation extends InstrumentationBase<Http> {
'response',
(response: http.IncomingMessage & { aborted?: boolean }) => {
this._diag.debug('outgoingRequest on response()');
if (request.listenerCount('request') <= 0) {
if (request.listenerCount('response') <= 1) {
response.resume();
}
const responseAttributes =
Expand Down

0 comments on commit bf8ee62

Please sign in to comment.