From f4e3f25df54ac02dd324d57d2fd5af661800cb70 Mon Sep 17 00:00:00 2001 From: Stephen Belanger Date: Mon, 9 Sep 2019 10:05:07 -0700 Subject: [PATCH] fix: context loss in Node.js 12.0-12.2 --- lib/instrumentation/http-shared.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/instrumentation/http-shared.js b/lib/instrumentation/http-shared.js index 113a514dd6e..cd82b91f9eb 100644 --- a/lib/instrumentation/http-shared.js +++ b/lib/instrumentation/http-shared.js @@ -156,6 +156,7 @@ exports.traceOutgoingRequest = function (agent, moduleName, method) { return req function onresponse (res) { + ins._recoverTransaction(span.transaction) agent.logger.debug('intercepted http.ClientRequest response event %o', { id: id }) ins.bindEmitter(res)