lib/opentelemetry/sdk/trace/export/noop_span_exporter.rb in opentelemetry-sdk-0.15.0 vs lib/opentelemetry/sdk/trace/export/noop_span_exporter.rb in opentelemetry-sdk-0.16.0

- old
+ new

@@ -29,9 +29,19 @@ return SUCCESS unless @stopped FAILURE end + # Called when {TracerProvider#force_flush} is called, if this exporter is + # registered to a {TracerProvider} object. + # + # @param [optional Numeric] timeout An optional timeout in seconds. + # @return [Integer] SUCCESS if no error occurred, FAILURE if a + # non-specific failure occurred, TIMEOUT if a timeout occurred. + def force_flush(timeout: nil) + SUCCESS + end + # Called when {TracerProvider#shutdown} is called, if this exporter is # registered to a {TracerProvider} object. # # @param [optional Numeric] timeout An optional timeout in seconds. def shutdown(timeout: nil)