CloudTraceFormatterTest
extends TestCase
-
#[CoversClass]
-
\OpenTelemetry\Extension\Propagator\CloudTrace\CloudTraceFormatter::class
Table of Contents
Methods
-
for_test_deserialize()
: array<string|int, mixed>
-
for_test_serialize()
: array<string|int, mixed>
-
test_deserialize()
: void
-
test_serialize()
: void
for_test_deserialize()
public
static for_test_deserialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
for_test_serialize()
public
static for_test_serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
test_deserialize()
public
test_deserialize(string $header, string $traceId, string $spanId, int $sample) : void
Parameters
-
$header
: string
-
-
$traceId
: string
-
-
$spanId
: string
-
-
$sample
: int
-
-
#[DataProvider]
-
'for_test_deserialize'
test_serialize()
public
test_serialize(SpanContextInterface $span, string $header) : void
Parameters
-
$span
: SpanContextInterface
-
-
$header
: string
-
-
#[DataProvider]
-
'for_test_serialize'