Method: OpenTelemetry::SDK::Trace::Export::InMemorySpanExporter#export
- Defined in:
- lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb
#export(span_datas, timeout: nil) ⇒ Integer
Called to export sampled SpanDatas.
75 76 77 78 79 80 81 82 |
# File 'lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb', line 75 def export(span_datas, timeout: nil) @mutex.synchronize do return FAILURE if @stopped @finished_spans.concat(span_datas.to_a) if @recording end SUCCESS end |