lib/opentelemetry/sdk/trace/noop_span_processor.rb in opentelemetry-sdk-0.8.0 vs lib/opentelemetry/sdk/trace/noop_span_processor.rb in opentelemetry-sdk-0.9.0

- old
+ new

@@ -41,20 +41,22 @@ # This method should only be called in cases where it is absolutely # necessary, such as when using some FaaS providers that may suspend # the process after an invocation, but before the `Processor` exports # the completed spans. # + # @param [optional Numeric] timeout An optional timeout in seconds. # @return [Integer] Export::SUCCESS if no error occurred, Export::FAILURE if # a non-specific failure occurred, Export::TIMEOUT if a timeout occurred. - def force_flush + def force_flush(timeout: nil) Export::SUCCESS end # Called when {TracerProvider#shutdown} is called. # + # @param [optional Numeric] timeout An optional timeout in seconds. # @return [Integer] Export::SUCCESS if no error occurred, Export::FAILURE if # a non-specific failure occurred, Export::TIMEOUT if a timeout occurred. - def shutdown + def shutdown(timeout: nil) Export::SUCCESS end end end end