Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/publisher/message-queues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ export abstract class MessageQueue extends EventEmitter {

throw e;
} finally {
messages.forEach(m => {
// We're finished with both the RPC and the whole publish operation,
// so close out all of the related spans.
rpcSpan?.end();
// We're finished with both the RPC and the whole publish operation,
// so close out all of the related spans.
// rpcSpan must be closed only once
rpcSpan?.end();
messages.forEach(m => {
tracing.PubsubEvents.publishEnd(m);
m.parentSpan?.end();
});
Expand Down
Loading