Commit 5fce0a5 1 parent 46aaac9 commit 5fce0a5 Copy full SHA for 5fce0a5
File tree 1 file changed +2
-2
lines changed
opentelemetry-sdk/src/trace
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,8 @@ impl BatchSpanProcessor {
293
293
match message_receiver. recv_timeout ( remaining_time) {
294
294
Ok ( message) => match message {
295
295
BatchMessage :: ExportSpan ( export_span_message_sent) => {
296
+ // Reset the export span message sent flag now it has has been processed.
297
+ export_span_message_sent. store ( false , Ordering :: Relaxed ) ;
296
298
otel_debug ! (
297
299
name: "BatchSpanProcessor.ExportingDueToBatchSize" ,
298
300
) ;
@@ -304,8 +306,6 @@ impl BatchSpanProcessor {
304
306
& current_batch_size,
305
307
& config,
306
308
) ;
307
- // Reset the export span message sent flag now it has has been processed.
308
- export_span_message_sent. store ( false , Ordering :: Relaxed ) ;
309
309
}
310
310
BatchMessage :: ForceFlush ( sender) => {
311
311
otel_debug ! ( name: "BatchSpanProcessor.ExportingDueToForceFlush" ) ;
You can’t perform that action at this time.
0 commit comments