lib/opentelemetry/sdk/trace/export/simple_span_processor.rb in opentelemetry-sdk-0.11.1 vs lib/opentelemetry/sdk/trace/export/simple_span_processor.rb in opentelemetry-sdk-0.12.0

- old
+ new

@@ -55,10 +55,10 @@ def on_finish(span) return unless span.context.trace_flags.sampled? @span_exporter&.export([span.to_span_data]) rescue => e # rubocop:disable Style/RescueStandardError - OpenTelemetry.logger.error("unexpected error in span.on_finish - #{e}") + OpenTelemetry.handle_error(exception: e, message: 'unexpected error in span.on_finish') end # Export all ended spans to the configured `Exporter` that have not yet # been exported. #