diff --git a/sdk/lib/opentelemetry/sdk/trace/export/batch_span_processor.rb b/sdk/lib/opentelemetry/sdk/trace/export/batch_span_processor.rb index 543d95e09..7a83f3282 100644 --- a/sdk/lib/opentelemetry/sdk/trace/export/batch_span_processor.rb +++ b/sdk/lib/opentelemetry/sdk/trace/export/batch_span_processor.rb @@ -75,7 +75,7 @@ def on_finish(span) # rubocop:disable Metrics/AbcSize n = spans.size + 1 - max_queue_size spans.shift(n) if n.positive? spans << span - @condition.signal if spans.size > max_queue_size / 2 + @condition.signal if spans.size > batch_size end end