lib/opentelemetry/sdk/trace/export/multi_span_exporter.rb in opentelemetry-sdk-0.6.0 vs lib/opentelemetry/sdk/trace/export/multi_span_exporter.rb in opentelemetry-sdk-0.7.0

- old
+ new

@@ -33,11 +33,14 @@ end end # Called when {TracerProvider#shutdown} is called, if this exporter is # registered to a {TracerProvider} object. + # + # @return [Integer] SUCCESS if no error occurred, FAILURE if a + # non-specific failure occurred, TIMEOUT if a timeout occurred. def shutdown - @span_exporters.each(&:shutdown) + @span_exporters.map(&:shutdown).uniq.max end private # Returns a merged error code, see the rules in the code.