Skip to content

Commit

Permalink
fix(instrumentation-net): Don't operate on closed span
Browse files Browse the repository at this point in the history
  • Loading branch information
mhennoch committed Nov 23, 2023
1 parent a757b5e commit 3415c2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class NetInstrumentation extends InstrumentationBase<Net> {
}
};

for (const event of [SocketEvent.CLOSE, SocketEvent.ERROR]) {
for (const event of [SocketEvent.CLOSE, SocketEvent.ERROR, SocketEvent.SECURE_CONNECT]) {
socket.once(event, otelTlsRemoveListeners);
}

Expand Down

0 comments on commit 3415c2d

Please sign in to comment.