VoidTransport implements Transport
FinalYes
A no-op transport for exporters that don't need actual transport.
Used by console, memory, and void exporters to satisfy the requirement that all exporters must return at least one transport.
Interfaces
- Transport
- Interface for sending telemetry data to backends.
Methods
- sendLogs() : void
- Send log entries to the backend.
- sendMetrics() : void
- Send metrics to the backend.
- sendSpans() : void
- Send spans to the backend.
- shutdown() : void
- Shutdown the transport, releasing any resources.
Methods
sendLogs()
Send log entries to the backend.
public
sendLogs(array<string|int, mixed> $entries) : void
Parameters
- $entries : array<string|int, mixed>
-
The log entries to export
sendMetrics()
Send metrics to the backend.
public
sendMetrics(array<string|int, mixed> $metrics) : void
Parameters
- $metrics : array<string|int, mixed>
-
The metrics to export
sendSpans()
Send spans to the backend.
public
sendSpans(array<string|int, mixed> $spans) : void
Parameters
- $spans : array<string|int, mixed>
-
The spans to export
shutdown()
Shutdown the transport, releasing any resources.
public
shutdown() : void
Should complete any pending sends before shutting down. This method is idempotent - calling it multiple times is safe.