OpenTelemetry PHP

B3MultiPropagatorTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\Extension\Propagator\B3\B3MultiPropagator::class

Table of Contents

Constants

IS_NOT_SAMPLED  = '0'
IS_SAMPLED  = '1'
SPAN_ID_BASE16  = 'ff00000000000041'
TRACE_ID_BASE16  = 'ff000000000000000000000000000041'

Properties

$b3MultiPropagator  : B3MultiPropagator
$DEBUG_FLAG  : mixed
$SAMPLED  : mixed
$SPAN_ID  : mixed
$TRACE_ID  : mixed

Methods

invalidDebugValueProvider()  : array<string|int, mixed>
invalidSampledValueProvider()  : array<string|int, mixed>
notSampledValueProvider()  : array<string|int, mixed>
sampledValueProvider()  : array<string|int, mixed>
test_extract_and_inject()  : void
test_extract_debug_context()  : void
test_extract_debug_with_non_sampled_context()  : void
test_extract_debug_with_sampled_context()  : void
test_extract_empty_span_id()  : void
test_extract_empty_trace_id()  : void
test_extract_invalid_debug_with_non_sampled_context()  : void
test_extract_invalid_debug_with_sampled_context()  : void
test_extract_invalid_sampled_context()  : void
test_extract_non_sampled_context()  : void
test_extract_nothing()  : void
test_extract_sampled_context()  : void
test_fields()  : void
test_inject_debug_with_non_sampled_context()  : void
test_inject_debug_with_sampled_context()  : void
test_inject_empty()  : void
test_inject_invalid_context()  : void
test_inject_non_sampled_context()  : void
test_inject_sampled_context()  : void
test_invalid_span_id()  : void
test_invalid_span_id_size()  : void
test_invalid_trace_id()  : void
test_invalid_trace_id_size()  : void
setUp()  : void
assertInvalid()  : void
getSpanContext()  : SpanContextInterface
withSpanContext()  : ContextInterface

Constants

Properties

Methods

invalidDebugValueProvider()

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

invalidSampledValueProvider()

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

notSampledValueProvider()

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

sampledValueProvider()

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

test_extract_debug_with_non_sampled_context()

public test_extract_debug_with_non_sampled_context() : void

test_extract_debug_with_sampled_context()

public test_extract_debug_with_sampled_context() : void

test_extract_invalid_debug_with_non_sampled_context()

public test_extract_invalid_debug_with_non_sampled_context(mixed $debugValue) : void
Parameters
$debugValue : mixed
Attributes
#[DataProvider]
'invalidDebugValueProvider'

test_extract_invalid_debug_with_sampled_context()

public test_extract_invalid_debug_with_sampled_context(mixed $debugValue) : void
Parameters
$debugValue : mixed
Attributes
#[DataProvider]
'invalidDebugValueProvider'

test_extract_invalid_sampled_context()

public test_extract_invalid_sampled_context(mixed $sampledValue) : void
Parameters
$sampledValue : mixed
Attributes
#[DataProvider]
'invalidSampledValueProvider'

test_extract_non_sampled_context()

public test_extract_non_sampled_context(mixed $sampledValue) : void
Parameters
$sampledValue : mixed
Attributes
#[DataProvider]
'notSampledValueProvider'

test_extract_sampled_context()

public test_extract_sampled_context(mixed $sampledValue) : void
Parameters
$sampledValue : mixed
Attributes
#[DataProvider]
'sampledValueProvider'

test_inject_debug_with_non_sampled_context()

public test_inject_debug_with_non_sampled_context() : void

test_inject_debug_with_sampled_context()

public test_inject_debug_with_sampled_context() : void

assertInvalid()

private assertInvalid(array<string|int, mixed> $carrier) : void
Parameters
$carrier : array<string|int, mixed>

        
On this page

Search results