diff --git a/experimental/packages/opentelemetry-instrumentation-http/src/http.ts b/experimental/packages/opentelemetry-instrumentation-http/src/http.ts index 23a3d2ee98d..f70a0a7c990 100644 --- a/experimental/packages/opentelemetry-instrumentation-http/src/http.ts +++ b/experimental/packages/opentelemetry-instrumentation-http/src/http.ts @@ -346,8 +346,8 @@ export class HttpInstrumentation extends InstrumentationBase { context.bind(context.active(), response); this._diag.debug('outgoingRequest on response()'); - response.on('end', () => { - this._diag.debug('outgoingRequest on end()'); + response.on('close', () => { + this._diag.debug('outgoingRequest on close()'); let status: SpanStatus; if (response.aborted && !response.complete) {