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 58a7bca commit 51fb53aCopy full SHA for 51fb53a
internal-packages/run-engine/src/batch-queue/index.ts
@@ -503,6 +503,10 @@ export class BatchQueue {
503
*/
504
async close(): Promise<void> {
505
await this.stop();
506
+
507
+ // Clean up any remaining batched spans (safety net for spans not cleaned up by consumer loops)
508
+ this.batchedSpanManager.cleanupAll();
509
510
await this.fairQueue.close();
511
await this.workerQueueManager.close();
512
await this.completionTracker.close();
0 commit comments