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 b615f61 commit a65df3dCopy full SHA for a65df3d
1 file changed
packages/opentelemetry/src/spanExporter.ts
@@ -180,9 +180,6 @@ export class SentrySpanExporter {
180
181
this.flushSentSpanCache();
182
const sentSpans = this._maybeSend(finishedSpans);
183
- for (const span of finishedSpans) {
184
- this._sentSpans.set(span.spanContext().spanId, Date.now() + DEFAULT_TIMEOUT * 1000);
185
- }
186
187
const sentSpanCount = sentSpans.size;
188
const remainingOpenSpanCount = finishedSpans.length - sentSpanCount;
@@ -192,6 +189,7 @@ export class SentrySpanExporter {
192
189
);
193
190
194
191
for (const span of sentSpans) {
+ this._sentSpans.set(span.spanContext().spanId, Date.now() + DEFAULT_TIMEOUT * 1000);
195
const bucketEntry = this._spansToBucketEntry.get(span);
196
if (bucketEntry) {
197
bucketEntry.spans.delete(span);
0 commit comments