Inttegro PHP SDK

Telemetry
in package

FinalYes

Emits redacted SDK spans through the application's OpenTelemetry provider.

Table of Contents

Methods

__construct()  : mixed
decoded()  : void
prepare()  : array<string|int, mixed>
response()  : void
trace()  : T

Methods

__construct()

public __construct([bool $enabled = true ][, TracerProviderInterface|null $tracerProvider = null ][, TextMapPropagatorInterface|null $propagator = null ][, callable|null $errorReporter = null ][, string $errorReportingPolicy = 'unexpected' ]) : mixed
Parameters
$enabled : bool = true
$tracerProvider : TracerProviderInterface|null = null
$propagator : TextMapPropagatorInterface|null = null
$errorReporter : callable|null = null
$errorReportingPolicy : string = 'unexpected'

decoded()

public decoded(SpanInterface|null $span) : void
Parameters
$span : SpanInterface|null

prepare()

public prepare(SpanInterface|null $span, array<int, string> $headers) : array<string|int, mixed>
Parameters
$span : SpanInterface|null
$headers : array<int, string>

@return list

Return values
array<string|int, mixed>

response()

public response(SpanInterface|null $span, array{status: int, headers?: array$response) : void
Parameters
$span : SpanInterface|null
$response : array{status: int, headers?: array}

trace()

public trace(string $pathOrUrl, string $method, string $baseUrl, callable(Array): T $callback[, string|null $operationOverride = null ]) : T
Parameters
$pathOrUrl : string
$method : string
$baseUrl : string
$callback : callable(Array): T
$operationOverride : string|null = null
Tags
template
Return values
T
On this page

Search results