B3MultiPropagatorTest
extends TestCase
-
#[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
IS_NOT_SAMPLED
private
mixed
IS_NOT_SAMPLED
= '0'
IS_SAMPLED
private
mixed
IS_SAMPLED
= '1'
SPAN_ID_BASE16
private
mixed
SPAN_ID_BASE16
= 'ff00000000000041'
TRACE_ID_BASE16
private
mixed
TRACE_ID_BASE16
= 'ff000000000000000000000000000041'
$b3MultiPropagator
private
B3MultiPropagator
$b3MultiPropagator
$DEBUG_FLAG
private
mixed
$DEBUG_FLAG
$SAMPLED
private
mixed
$SAMPLED
$SPAN_ID
private
mixed
$SPAN_ID
$TRACE_ID
private
mixed
$TRACE_ID
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_and_inject()
public
test_extract_and_inject() : void
public
test_extract_debug_context() : void
public
test_extract_debug_with_non_sampled_context() : void
public
test_extract_debug_with_sampled_context() : void
public
test_extract_empty_span_id() : void
public
test_extract_empty_trace_id() : void
public
test_extract_invalid_debug_with_non_sampled_context(mixed $debugValue) : void
Parameters
-
$debugValue
: mixed
-
-
#[DataProvider]
-
'invalidDebugValueProvider'
public
test_extract_invalid_debug_with_sampled_context(mixed $debugValue) : void
Parameters
-
$debugValue
: mixed
-
-
#[DataProvider]
-
'invalidDebugValueProvider'
public
test_extract_invalid_sampled_context(mixed $sampledValue) : void
Parameters
-
$sampledValue
: mixed
-
-
#[DataProvider]
-
'invalidSampledValueProvider'
public
test_extract_non_sampled_context(mixed $sampledValue) : void
Parameters
-
$sampledValue
: mixed
-
-
#[DataProvider]
-
'notSampledValueProvider'
public
test_extract_nothing() : void
public
test_extract_sampled_context(mixed $sampledValue) : void
Parameters
-
$sampledValue
: mixed
-
-
#[DataProvider]
-
'sampledValueProvider'
test_fields()
public
test_fields() : void
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
test_inject_empty()
public
test_inject_empty() : void
test_inject_invalid_context()
public
test_inject_invalid_context() : void
test_inject_non_sampled_context()
public
test_inject_non_sampled_context() : void
test_inject_sampled_context()
public
test_inject_sampled_context() : void
test_invalid_span_id()
public
test_invalid_span_id() : void
test_invalid_span_id_size()
public
test_invalid_span_id_size() : void
test_invalid_trace_id()
public
test_invalid_trace_id() : void
test_invalid_trace_id_size()
public
test_invalid_trace_id_size() : void
setUp()
protected
setUp() : void
assertInvalid()
private
assertInvalid(array<string|int, mixed> $carrier) : void
Parameters
-
$carrier
: array<string|int, mixed>
-
getSpanContext()
private
getSpanContext(ContextInterface $context) : SpanContextInterface
Parameters
-
$context
: ContextInterface
-
withSpanContext()
private
withSpanContext(SpanContextInterface $spanContext, ContextInterface $context) : ContextInterface
Parameters
-
$spanContext
: SpanContextInterface
-
-
$context
: ContextInterface
-