OpenTelemetry PHP

PsrTransportFactory
in package
implements TransportFactoryInterface

FinalYes

Table of Contents

Interfaces

TransportFactoryInterface

Properties

$client  : ClientInterface|null
$requestFactory  : RequestFactoryInterface|null
$streamFactory  : StreamFactoryInterface|null

Methods

__construct()  : mixed
create()  : PsrTransport
discover()  : self

Properties

Methods

__construct()

public __construct([ClientInterface|null $client = null ][, RequestFactoryInterface|null $requestFactory = null ][, StreamFactoryInterface|null $streamFactory = null ]) : mixed
Parameters
$client : ClientInterface|null = null
$requestFactory : RequestFactoryInterface|null = null
$streamFactory : StreamFactoryInterface|null = null

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 ]) : PsrTransport
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
phan-suppress

PhanTypeMismatchArgumentNullable

Return values
PsrTransport

        
On this page

Search results