OpenTelemetry PHP

PsrTransport
in package
implements TransportInterface

FinalYes
Tags
psalm-template

CONTENT_TYPE of string

template-implements

TransportInterface<CONTENT_TYPE>

Table of Contents

Interfaces

TransportInterface

Properties

$client  : ClientInterface
$closed  : bool
$compression  : array<string|int, mixed>
$contentType  : string
$endpoint  : string
$headers  : array<string|int, mixed>
$maxRetries  : int
$requestFactory  : RequestFactoryInterface
$retryDelay  : int
$streamFactory  : StreamFactoryInterface

Methods

__construct()  : mixed
contentType()  : string
forceFlush()  : bool
send()  : FutureInterface
shutdown()  : bool
parseContentEncoding()  : array<int, string>

Properties

$compression read-only

private array<string|int, mixed> $compression

$headers read-only

private array<string|int, mixed> $headers

$requestFactory read-only

private RequestFactoryInterface $requestFactory

$streamFactory read-only

private StreamFactoryInterface $streamFactory

Methods

__construct()

public __construct(ClientInterface $client, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, string $endpoint, string $contentType, array<string|int, mixed> $headers, array<string|int, mixed> $compression, int $retryDelay, int $maxRetries) : mixed
Parameters
$client : ClientInterface
$requestFactory : RequestFactoryInterface
$streamFactory : StreamFactoryInterface
$endpoint : string
$contentType : string
$headers : array<string|int, mixed>
$compression : array<string|int, mixed>
$retryDelay : int
$maxRetries : int
Tags
psalm-param

CONTENT_TYPE $contentType

contentType()

public contentType() : string
Return values
string

parseContentEncoding()

private static parseContentEncoding(ResponseInterface $response) : array<int, string>
Parameters
$response : ResponseInterface
Return values
array<int, string>

        
On this page

Search results