OpenTelemetry PHP

TracerTest extends TestCase
in package
uses TestState

Attributes
#[CoversNothing]

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>

Methods

test_factory_returns_noop_tracer_when_sdk_disabled()  : void
test_general_identity_attributes_are_dropped_by_default()  : void
test_general_identity_attributes_are_retained_if_enabled()  : void
test_noop_span_should_be_started_when_sampling_result_is_drop()  : void
test_returns_noop_span_builder_after_shutdown()  : void
test_sampler_may_override_parents_trace_state()  : void
test_span_should_receive_instrumentation_scope()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

private array<string|int, mixed> $environmentVariables = []

Methods

test_factory_returns_noop_tracer_when_sdk_disabled()

public test_factory_returns_noop_tracer_when_sdk_disabled() : void

test_general_identity_attributes_are_dropped_by_default()

public test_general_identity_attributes_are_dropped_by_default() : void

test_general_identity_attributes_are_retained_if_enabled()

public test_general_identity_attributes_are_retained_if_enabled() : void

test_noop_span_should_be_started_when_sampling_result_is_drop()

public test_noop_span_should_be_started_when_sampling_result_is_drop() : void

test_returns_noop_span_builder_after_shutdown()

public test_returns_noop_span_builder_after_shutdown() : void

test_sampler_may_override_parents_trace_state()

public test_sampler_may_override_parents_trace_state() : void

test_span_should_receive_instrumentation_scope()

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

restoreEnvironmentVariables()

protected restoreEnvironmentVariables() : void
Attributes
#[After]

setEnvironmentVariable()

protected setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
$variable : string
$value : mixed

tearDownSharedState()

protected tearDownSharedState() : void
Attributes
#[After]

        
On this page

Search results