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

- old
+ new

@@ -192,10 +192,10 @@ def report_result(result_code, batch) if result_code == SUCCESS @metrics_reporter.add_to_counter('otel.bsp.export.success') @metrics_reporter.add_to_counter('otel.bsp.exported_spans', increment: batch.size) else - OpenTelemetry.handle_error(message: "Unable to export #{batch.size} spans") + OpenTelemetry.handle_error(exception: ExportError.new("Unable to export #{batch.size} spans")) @metrics_reporter.add_to_counter('otel.bsp.export.failure') report_dropped_spans(batch.size, reason: 'export-failure') end end