OpenTelemetry PHP

SpanContextTest extends TestCase
in package

Attributes
#[CoversNothing]

Table of Contents

Methods

invalidSpanData()  : array<string|int, mixed>
test_context_is_not_remote_from_constructor()  : void
test_context_is_remote_from_restore()  : void
test_getters_work()  : void
test_invalid_span()  : void
test_random_generated_ids_create_valid_context()  : void
test_sampled_span()  : void
test_valid_span()  : void

Methods

invalidSpanData()

public static invalidSpanData() : array<string|int, mixed>
Return values
array<string|int, mixed>

test_context_is_not_remote_from_constructor()

public test_context_is_not_remote_from_constructor() : void

test_context_is_remote_from_restore()

public test_context_is_remote_from_restore() : void
Attributes
#[Group]
'trace-compliance'

test_invalid_span()

public test_invalid_span(string $traceId, string $spanId) : void
Parameters
$traceId : string
$spanId : string
Attributes
#[DataProvider]
'invalidSpanData'

test_random_generated_ids_create_valid_context()

public test_random_generated_ids_create_valid_context() : void

test_valid_span()

public test_valid_span() : void
Attributes
#[Group]
'trace-compliance'

        
On this page

Search results