Flow PHP

Exporter

Interface for exporting telemetry signals to external systems.

Exporters are responsible for transmitting log, metric, and span batches to backends like OTLP collectors, console output, or in-memory stores.

The signal type is carried on the Signal::$type discriminator.

Methods

export()  : bool
Export a signal batch.
shutdown()  : void
Shutdown the exporter and any owned transports.

Methods

export()

Export a signal batch.

public export(Signals $signal) : bool

Implementations dispatch on Signal::$type via match.

Parameters
$signal : Signals
Return values
bool

True on success, false on failure

shutdown()

Shutdown the exporter and any owned transports.

public shutdown() : void

Implementations MUST be idempotent and MUST NOT throw - runtime errors are routed through the configured error handler instead.

On this page

Search results