Skip to content
Search
DSL · Telemetry otlp

otlp_stream_transport

Definition

/**
 * Create a stream transport for OTLP that writes JSONL to a single destination.
 *
 * Accepts an absolute file path or a php:// stream wrapper such as
 * 'php://stdout', 'php://stderr', 'php://memory', or 'php://temp'. Each
 * export() call appends one JSON Line under LOCK_EX so concurrent writers
 * interleave at line boundaries. The $filePermissions and $createDirectories
 * parameters apply only when the destination is a file path.
 *
 * Per the OTLP File Exporter spec only JSON encoding is supported.
 */
otlp_stream_transport(string $destination, int $filePermissions, bool $createDirectories) : Transport

Contributors

Built in the open.

Join us on GitHub
scroll back to top