Method: OpenTelemetry::SDK::Trace::Export::InMemorySpanExporter#force_flush

Defined in:
lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb

#force_flush(timeout: nil) ⇒ Integer

Called when TracerProvider#force_flush is called, if this exporter is registered to a TracerProvider object.

Parameters:

  • timeout (optional Numeric) (defaults to: nil)

    An optional timeout in seconds.

Returns:

  • (Integer)

    SUCCESS if no error occurred, FAILURE if a non-specific failure occurred, TIMEOUT if a timeout occurred.



90
91
92
# File 'lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb', line 90

def force_flush(timeout: nil)
  SUCCESS
end