OpenTelemetry PHP

Protocols
in package

Table of Contents

Constants

GRPC  = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_GRPC
HTTP_JSON  = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_HTTP_JSON
HTTP_NDJSON  = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_HTTP_NDJSON
HTTP_PROTOBUF  = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_HTTP_PROTOBUF
PROTOCOLS  = [self::GRPC => \OpenTelemetry\Contrib\Otlp\ContentTypes::PROTOBUF, self::HTTP_PROTOBUF => \OpenTelemetry\Contrib\Otlp\ContentTypes::PROTOBUF, self::HTTP_JSON => \OpenTelemetry\Contrib\Otlp\ContentTypes::JSON, self::HTTP_NDJSON => \OpenTelemetry\Contrib\Otlp\ContentTypes::NDJSON]

Methods

contentType()  : string
validate()  : void

Constants

GRPC

public mixed GRPC = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_GRPC

HTTP_JSON

public mixed HTTP_JSON = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_HTTP_JSON

HTTP_NDJSON

public mixed HTTP_NDJSON = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_HTTP_NDJSON

HTTP_PROTOBUF

public mixed HTTP_PROTOBUF = \OpenTelemetry\SDK\Common\Configuration\KnownValues::VALUE_HTTP_PROTOBUF

PROTOCOLS

private mixed PROTOCOLS = [self::GRPC => \OpenTelemetry\Contrib\Otlp\ContentTypes::PROTOBUF, self::HTTP_PROTOBUF => \OpenTelemetry\Contrib\Otlp\ContentTypes::PROTOBUF, self::HTTP_JSON => \OpenTelemetry\Contrib\Otlp\ContentTypes::JSON, self::HTTP_NDJSON => \OpenTelemetry\Contrib\Otlp\ContentTypes::NDJSON]

Methods

contentType()

public static contentType(string $protocol) : string
Parameters
$protocol : string
Tags
psalm-return

ContentTypes::*

Return values
string

validate()

public static validate(string $protocol) : void
Parameters
$protocol : string

        
On this page

Search results