lib/opentelemetry/exporter/jaeger/agent_exporter.rb in opentelemetry-exporter-jaeger-0.17.0 vs lib/opentelemetry/exporter/jaeger/agent_exporter.rb in opentelemetry-exporter-jaeger-0.18.0

- old
+ new

@@ -33,10 +33,10 @@ # @param [optional Numeric] timeout An optional timeout in seconds. # @return [Integer] the result of the export. def export(span_data, timeout: nil) return FAILURE if @shutdown - start_time = Time.now + start_time = OpenTelemetry::Common::Utilities.timeout_timestamp encoded_batches(span_data) do |batch| return FAILURE if @shutdown || OpenTelemetry::Common::Utilities.maybe_timeout(timeout, start_time)&.zero? @client.emitBatch(batch) end