lib/opentelemetry/sdk/trace/export/multi_span_exporter.rb in opentelemetry-sdk-0.3.0 vs lib/opentelemetry/sdk/trace/export/multi_span_exporter.rb in opentelemetry-sdk-0.4.0

- old
+ new

@@ -24,15 +24,13 @@ # @param [Enumerable<Span>] spans the list of sampled {Span}s to be # exported. # @return [Integer] the result of the export. def export(spans) @span_exporters.inject(SUCCESS) do |result_code, span_exporter| - begin - merge_result_code(result_code, span_exporter.export(spans)) - rescue => e # rubocop:disable Style/RescueStandardError - OpenTelemetry.logger.warn("exception raised by export - #{e}") - FAILED_NOT_RETRYABLE - end + merge_result_code(result_code, span_exporter.export(spans)) + rescue => e # rubocop:disable Style/RescueStandardError + OpenTelemetry.logger.warn("exception raised by export - #{e}") + FAILED_NOT_RETRYABLE end end # Called when {TracerProvider#shutdown} is called, if this exporter is # registered to a {TracerProvider} object.