Skip to content

Commit 0dc8546

Browse files
committed
ref(node): Trim span exit flush comment
1 parent 7b0b3a7 commit 0dc8546

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/node/src/sdk/client.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
7070
_INTERNAL_flushMetricsBuffer(this);
7171
};
7272

73-
// The span buffer drains on the client's `flush` hook. Its timers are unref'd, so without this a
74-
// process that exits on its own drops every span still waiting in the buffer.
73+
// The span buffer's timers are unref'd, so a natural exit would drop its spans.
7574
this._spanOnExitFlushListener = () => {
7675
this.emit('flush');
7776
};

0 commit comments

Comments
 (0)