lib/opentelemetry/sdk/trace/export/batch_span_processor.rb in opentelemetry-sdk-1.0.0.rc3 vs lib/opentelemetry/sdk/trace/export/batch_span_processor.rb in opentelemetry-sdk-1.0.0

- old
+ new

@@ -144,12 +144,12 @@ @thread end thread&.join(timeout) force_flush(timeout: OpenTelemetry::Common::Utilities.maybe_timeout(timeout, start_time)) - @exporter.shutdown(timeout: OpenTelemetry::Common::Utilities.maybe_timeout(timeout, start_time)) dropped_spans = lock { spans.size } report_dropped_spans(dropped_spans, reason: 'terminating') if dropped_spans.positive? + @exporter.shutdown(timeout: OpenTelemetry::Common::Utilities.maybe_timeout(timeout, start_time)) end private attr_reader :spans, :max_queue_size, :batch_size