You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opentelemetry-sdk/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
-*Fix* SpanProcessor::on_start is no longer called on non recording spans
7
7
-**Fix**: Restore true parallel exports in the async-native `BatchSpanProcessor` by honoring `OTEL_BSP_MAX_CONCURRENT_EXPORTS` ([#2959](https://github.com/open-telemetry/opentelemetry-rust/pull/3028)). A regression in [#2685](https://github.com/open-telemetry/opentelemetry-rust/pull/2685) inadvertently awaited the `export()` future directly in `opentelemetry-sdk/src/trace/span_processor_with_async_runtime.rs` instead of spawning it on the runtime, forcing all exports to run sequentially.
8
8
-**Feature**: Added `Clone` implementation to `SdkLogger` for API consistency with `SdkTracer` ([#3058](https://github.com/open-telemetry/opentelemetry-rust/issues/3058)).
9
+
-**Fix**: batch size accounting in BatchSpanProcessor when queue is full ([#3089](https://github.com/open-telemetry/opentelemetry-rust/pull/3089)).
message = "BatchSpanProcessor dropped a Span due to queue full/internal errors. No further internal log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total Spans dropped.");
533
-
}
534
-
}
535
-
// At this point, sending the span to the data channel was successful.
536
-
// Increment the current batch size and check if it has reached the max export batch size.
message = "BatchSpanProcessor dropped a Span due to queue full/internal errors. No further internal log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total Spans dropped.");
566
+
}
567
+
}
564
568
}
565
569
}
566
570
@@ -1227,6 +1231,10 @@ mod tests {
1227
1231
// Verify dropped spans count (if accessible in your implementation)
1228
1232
let dropped_count = processor.dropped_span_count.load(Ordering::Relaxed);
1229
1233
assert_eq!(dropped_count,1,"Unexpected number of dropped spans");
1234
+
1235
+
// Verify current batch size
1236
+
let current_batch_size = processor.current_batch_size.load(Ordering::Relaxed);
1237
+
assert_eq!(current_batch_size,0,"Unexpected current batch size");
0 commit comments