Flow PHP

ConsoleSpanExporter implements SpanExporter

Read onlyYes
FinalYes

Console exporter for spans with ASCII table visualization.

Outputs spans to the console in a human-readable format with optional ANSI colors. Table width is calculated dynamically based on content.

Interfaces

SpanExporter
Interface for exporting spans to external systems.

Methods

__construct()  : mixed
export()  : bool
Export a batch of spans.
transports()  : array<string|int, Transport>
Get the transports used by this exporter.

Methods

__construct()

public __construct([bool $colors = true ][, null|resource $outputStream = null ]) : mixed
Parameters
$colors : bool = true

Whether to use ANSI colors

$outputStream : null|resource = null

Output stream (default: STDOUT)

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