OtlpExporterFactory
class OtlpExporterFactory implements ExporterFactory
Create OTLP/HTTP exporters with coroutine-compatible Guzzle transports.
Properties
| protected HttpFactory | $httpFactory | ||
| protected HttpEndpointResolver | $endpointResolver | ||
| protected ClientInterface> | $clients |
Methods
Create an OTLP exporter factory.
Create an OTLP span exporter.
Create an OTLP metric exporter.
Create an OTLP log-record exporter.
Create an OTLP transport for one signal.
Validate final signal settings before constructing an exporter transport.
Return the configuration prefix for an OpenTelemetry signal.
Resolve the final per-signal OTLP settings.
Return the OTLP content type for an HTTP protocol.
Return a client shared by signals with the same network settings.
Create the PSR-18 client used by an OTLP transport.
Build Guzzle options for the normalized TLS and timeout settings.
Map the configured metric temporality to the SDK representation.
Details
at line 43
__construct()
Create an OTLP exporter factory.
at line 54
SpanExporterInterface
spanExporter(array $config)
Create an OTLP span exporter.
at line 62
MetricExporterInterface
metricExporter(array $config)
Create an OTLP metric exporter.
at line 75
LogRecordExporterInterface
logExporter(array $config)
Create an OTLP log-record exporter.
at line 83
protected TransportInterface
transport(array $config, string $signal)
Create an OTLP transport for one signal.
at line 115
protected void
validateSignalConfig(array $config, string $signalPrefix)
Validate final signal settings before constructing an exporter transport.
at line 161
protected string
signalPrefix(string $signal)
Return the configuration prefix for an OpenTelemetry signal.
at line 186
protected array
signalConfig(array $config, string $signal)
Resolve the final per-signal OTLP settings.
at line 207
protected string
contentType(string $protocol, string $signalPrefix)
Return the OTLP content type for an HTTP protocol.
at line 228
protected ClientInterface
client(array $config)
Return a client shared by signals with the same network settings.
at line 243
protected ClientInterface
createClient(array $options)
Create the PSR-18 client used by an OTLP transport.
at line 258
protected array
clientOptions(array $config)
Build Guzzle options for the normalized TLS and timeout settings.
at line 276
protected string|null
temporality(string $temporality)
Map the configured metric temporality to the SDK representation.