We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8cd0e7 commit 830f2beCopy full SHA for 830f2be
src/publisher/message-queues.ts
@@ -172,10 +172,11 @@ export abstract class MessageQueue extends EventEmitter {
172
173
throw e;
174
} finally {
175
- messages.forEach(m => {
176
- // We're finished with both the RPC and the whole publish operation,
177
- // so close out all of the related spans.
178
- 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();
179
+ messages.forEach(m => {
180
tracing.PubsubEvents.publishEnd(m);
181
m.parentSpan?.end();
182
});
0 commit comments