Skip to content

Commit

Permalink
fix(instrumentation-net): Don't operate on closed span (#1819)
Browse files Browse the repository at this point in the history
* fix(instrumentation-net): Don't operate on closed span

* Fix lint
  • Loading branch information
mhennoch authored Nov 27, 2023
1 parent 71172e5 commit 60d60d0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ 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 60d60d0

Please sign in to comment.