File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/opentelemetry/src Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,6 @@ export class SentrySpanExporter {
180
180
181
181
this . flushSentSpanCache ( ) ;
182
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
183
187
184
const sentSpanCount = sentSpans . size ;
188
185
const remainingOpenSpanCount = finishedSpans . length - sentSpanCount ;
@@ -192,6 +189,7 @@ export class SentrySpanExporter {
192
189
) ;
193
190
194
191
for ( const span of sentSpans ) {
192
+ this . _sentSpans . set ( span . spanContext ( ) . spanId , Date . now ( ) + DEFAULT_TIMEOUT * 1000 ) ;
195
193
const bucketEntry = this . _spansToBucketEntry . get ( span ) ;
196
194
if ( bucketEntry ) {
197
195
bucketEntry . spans . delete ( span ) ;
You can’t perform that action at this time.
0 commit comments