Skip to content

Commit 6b39ac7

Browse files
committed
flush buffer when Sentry.flush() is called
1 parent cef2f39 commit 6b39ac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/opentelemetry/src/streamingSpanExporter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ export class StreamingSpanExporter implements ISentrySpanExporter {
7575
this._debounceFlushInterval();
7676
}
7777
});
78+
79+
this._client.on('flush', () => {
80+
this.flush();
81+
});
7882
}
7983

8084
/**

0 commit comments

Comments
 (0)