Skip to content

Commit 8eb8efe

Browse files
committed
fix: context loss in Node.js 12.0-12.2
1 parent 866836c commit 8eb8efe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/instrumentation/http-shared.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ exports.traceOutgoingRequest = function (agent, moduleName, method) {
156156
return req
157157

158158
function onresponse (res) {
159+
ins._recoverTransaction(span.transaction)
159160
agent.logger.debug('intercepted http.ClientRequest response event %o', { id: id })
160161
ins.bindEmitter(res)
161162

0 commit comments

Comments
 (0)