OpenTelemetry PHP

OtlpUtil
in package

Table of Contents

Constants

HEADER_VARS  = [\OpenTelemetry\API\Signals::TRACE => \OpenTelemetry\SDK\Common\Configuration\Variables::OTEL_EXPORTER_OTLP_TRACES_HEADERS, \OpenTelemetry\API\Signals::METRICS => \OpenTelemetry\SDK\Common\Configuration\Variables::OTEL_EXPORTER_OTLP_METRICS_HEADERS, \OpenTelemetry\API\Signals::LOGS => \OpenTelemetry\SDK\Common\Configuration\Variables::OTEL_EXPORTER_OTLP_LOGS_HEADERS]
METHODS  = [\OpenTelemetry\API\Signals::TRACE => '/opentelemetry.proto.collector.trace.v1.TraceService/Export', \OpenTelemetry\API\Signals::METRICS => '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export', \OpenTelemetry\API\Signals::LOGS => '/opentelemetry.proto.collector.logs.v1.LogsService/Export']
gRPC per-signal methods

Methods

getHeaders()  : array<string|int, mixed>
getUserAgentHeader()  : array<string|int, mixed>
method()  : string
path()  : string

Constants

HEADER_VARS

private mixed HEADER_VARS = [\OpenTelemetry\API\Signals::TRACE => \OpenTelemetry\SDK\Common\Configuration\Variables::OTEL_EXPORTER_OTLP_TRACES_HEADERS, \OpenTelemetry\API\Signals::METRICS => \OpenTelemetry\SDK\Common\Configuration\Variables::OTEL_EXPORTER_OTLP_METRICS_HEADERS, \OpenTelemetry\API\Signals::LOGS => \OpenTelemetry\SDK\Common\Configuration\Variables::OTEL_EXPORTER_OTLP_LOGS_HEADERS]

METHODS

gRPC per-signal methods

private mixed METHODS = [\OpenTelemetry\API\Signals::TRACE => '/opentelemetry.proto.collector.trace.v1.TraceService/Export', \OpenTelemetry\API\Signals::METRICS => '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export', \OpenTelemetry\API\Signals::LOGS => '/opentelemetry.proto.collector.logs.v1.LogsService/Export']
Tags
see
protobuf

*ServiceClient

Methods

getHeaders()

public static getHeaders(string $signal) : array<string|int, mixed>
Parameters
$signal : string
Return values
array<string|int, mixed>

method()

public static method(string $signal) : string
Parameters
$signal : string
Return values
string

path()

public static path("trace"|"metrics"|"logs" $signal, "grpc"|"http/protobuf"|"http/json" $protocol) : string
Parameters
$signal : "trace"|"metrics"|"logs"
$protocol : "grpc"|"http/protobuf"|"http/json"
Return values
string

        
On this page

Search results