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 394ca5e commit 7163918Copy full SHA for 7163918
opentelemetry-sdk/src/trace/span_processor.rs
@@ -260,8 +260,7 @@ impl BatchSpanProcessor {
260
let handle = thread::Builder::new()
261
.name("BatchSpanProcessorThread".to_string())
262
.spawn(move || {
263
- let mut spans = Vec::new();
264
- spans.reserve(config.max_export_batch_size);
+ let mut spans = Vec::with_capacity(config.max_export_batch_size);
265
let mut last_export_time = Instant::now();
266
267
loop {
0 commit comments