OpenTelemetry PHP

TransportFactoryInterface

Table of Contents

Constants

COMPRESSION_BROTLI  = 'br'
COMPRESSION_DEFLATE  = 'deflate'
COMPRESSION_GZIP  = 'gzip'

Methods

create()  : TransportInterface

Constants

Methods

create()

public create(string $endpoint, string $contentType[, array<string|int, mixed> $headers = [] ][, mixed $compression = null ][, float $timeout = 10.0 ][, int $retryDelay = 100 ][, int $maxRetries = 3 ][, string|null $cacert = null ][, string|null $cert = null ][, string|null $key = null ]) : TransportInterface
Parameters
$endpoint : string
$contentType : string
$headers : array<string|int, mixed> = []
$compression : mixed = null
$timeout : float = 10.0
$retryDelay : int = 100
$maxRetries : int = 3
$cacert : string|null = null
$cert : string|null = null
$key : string|null = null
Tags
psalm-template

CONTENT_TYPE of string

psalm-param

CONTENT_TYPE $contentType

psalm-param

array<string, string|string[]> $headers

psalm-param

string|string[]|null $compression

psalm-return

TransportInterface<CONTENT_TYPE>

Return values
TransportInterface

        
On this page

Search results