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

- old
+ new

@@ -21,19 +21,22 @@ # Called to export sampled {Span}s. # # @param [Enumerable<Span>] spans the list of sampled {Span}s to be # exported. + # @param [optional Numeric] timeout An optional timeout in seconds. # @return [Integer] the result of the export. - def export(spans) + def export(spans, timeout: nil) return SUCCESS unless @stopped FAILURE end # Called when {TracerProvider#shutdown} is called, if this exporter is # registered to a {TracerProvider} object. - def shutdown + # + # @param [optional Numeric] timeout An optional timeout in seconds. + def shutdown(timeout: nil) @stopped = true SUCCESS end end end