Skip to content

Commit 3f6cf4e

Browse files
fix: batchspanprocessor_handles_dropped_spans test case - comment fix
1 parent cc0ae9f commit 3f6cf4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,10 +1256,9 @@ mod tests {
12561256
fn batchspanprocessor_handles_dropped_spans() {
12571257
let exporter = MockSpanExporter::new();
12581258
let exporter_shared = exporter.exported_spans.clone(); // Shared access to verify exported spans
1259-
// Explicitly set max_export_batch_size to avoid environment variable override that could cause the test to fail when OTEL_BSP_MAX_EXPORT_BATCH_SIZE is set to 2
12601259
let config = BatchConfigBuilder::default()
12611260
.with_max_queue_size(2) // Small queue size to test span dropping
1262-
.with_max_export_batch_size(512) // Explicitly set to default to avoid env var override
1261+
.with_max_export_batch_size(512) // Explicitly set to avoid env var override
12631262
.with_scheduled_delay(Duration::from_secs(5))
12641263
.build();
12651264
let processor = BatchSpanProcessor::new(exporter, config);

0 commit comments

Comments
 (0)