Flow PHP

MemorySpanExporter implements SpanExporter

FinalYes

Exporter that stores spans in memory for direct access.

Useful for testing and inspection where you need direct access to exported data without serialization.

Interfaces

SpanExporter
Interface for exporting spans to external systems.

Methods

export()  : bool
Export a batch of spans.
reset()  : void
Reset all stored data.
spans()  : array<string|int, Span>
Get all exported spans.
transports()  : array<string|int, Transport>
Get the transports used by this exporter.

Methods

export()

Export a batch of spans.

public export(array<string|int, Span$spans) : bool
Parameters
$spans : array<string|int, Span>
Return values
bool

True on success, false on failure


        
On this page

Search results