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

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

#finished_spansArray<SpanData>

Returns a frozen array of the finished SpanDatas, represented by OpenTelemetry::SDK::Trace::Export::InMemorySpanExporter.ioio.opentelemetryio.opentelemetry.protoio.opentelemetry.proto.traceio.opentelemetry.proto.trace.v1io.opentelemetry.proto.trace.v1.Span.

Returns:



53
54
55
56
57
# File 'lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb', line 53

def finished_spans
  @mutex.synchronize do
    @finished_spans.clone.freeze
  end
end