lib/opentelemetry/sdk/trace/noop_span_processor.rb in opentelemetry-sdk-0.2.0 vs lib/opentelemetry/sdk/trace/noop_span_processor.rb in opentelemetry-sdk-0.3.0

- old
+ new

@@ -31,10 +31,19 @@ # not throw or block the execution thread. # # @param [Span] span the {Span} that just ended. def on_finish(span); end - # Called when {TracerFactory#shutdown} is called. + # Export all ended spans to the configured `Exporter` that have not yet + # been exported. + # + # 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. + def force_flush; end + + # Called when {TracerProvider#shutdown} is called. def shutdown; end end end end end