CloudTracePropagatorTest
extends TestCase
in package
Attributes
- #[CoversClass]
- \OpenTelemetry\Extension\Propagator\CloudTrace\CloudTracePropagator::class
Table of Contents
Constants
- SPAN_ID_BASE10 = '19'
- SPAN_ID_BASE16 = '0000000000000013'
- TRACE_DISABLED = 0
- TRACE_ENABLED = 1
- TRACE_ID_BASE16 = 'ff000000000000000000000000000041'
Properties
Methods
- test_extract_non_sampled_context() : void
- test_extract_nothing() : void
- test_extract_sampled_context() : void
- test_fields() : void
- test_inject_invalid_context() : void
- test_inject_non_sampled_context() : void
- test_inject_non_sampled_default_context() : void
- test_inject_sampled_context() : void
- setUp() : void
- getSpanContext() : SpanContextInterface
- withSpanContext() : ContextInterface
Constants
SPAN_ID_BASE10
private
mixed
SPAN_ID_BASE10
= '19'
SPAN_ID_BASE16
private
mixed
SPAN_ID_BASE16
= '0000000000000013'
TRACE_DISABLED
private
mixed
TRACE_DISABLED
= 0
TRACE_ENABLED
private
mixed
TRACE_ENABLED
= 1
TRACE_ID_BASE16
private
mixed
TRACE_ID_BASE16
= 'ff000000000000000000000000000041'
Properties
$cloudTracePropagator
private
TextMapPropagatorInterface
$cloudTracePropagator
$xcloud
private
string
$xcloud
Methods
test_extract_non_sampled_context()
public
test_extract_non_sampled_context() : void
test_extract_nothing()
public
test_extract_nothing() : void
test_extract_sampled_context()
public
test_extract_sampled_context() : void
test_fields()
public
test_fields() : 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_non_sampled_default_context()
public
test_inject_non_sampled_default_context() : void
test_inject_sampled_context()
public
test_inject_sampled_context() : void
setUp()
protected
setUp() : void
Tags
getSpanContext()
private
getSpanContext(ContextInterface $context) : SpanContextInterface
Parameters
- $context : ContextInterface
Return values
SpanContextInterfacewithSpanContext()
private
withSpanContext(SpanContextInterface $spanContext, ContextInterface $context) : ContextInterface
Parameters
- $spanContext : SpanContextInterface
- $context : ContextInterface