lib/opentelemetry/sdk/trace/export/batch_span_processor.rb in opentelemetry-sdk-0.16.0 vs lib/opentelemetry/sdk/trace/export/batch_span_processor.rb in opentelemetry-sdk-0.17.0
- old
+ new
@@ -50,9 +50,10 @@
max_queue_size: Integer(ENV.fetch('OTEL_BSP_MAX_QUEUE_SIZE', 2048)),
max_export_batch_size: Integer(ENV.fetch('OTEL_BSP_MAX_EXPORT_BATCH_SIZE', 512)),
start_thread_on_boot: String(ENV['OTEL_RUBY_BSP_START_THREAD_ON_BOOT']) !~ /false/i,
metrics_reporter: nil)
raise ArgumentError if max_export_batch_size > max_queue_size
+ raise ArgumentError, "exporter #{exporter.inspect} does not appear to be a valid exporter" unless Common::Utilities.valid_exporter?(exporter)
@exporter = exporter
@exporter_timeout_seconds = exporter_timeout / 1000.0
@mutex = Mutex.new
@export_mutex = Mutex.new