OpenTelemetry PHP

SpanProcessorFactoryTest extends TestCase
in package
uses TestState

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Trace\SpanProcessorFactory::class

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>

Methods

processorProvider()  : array<string|int, mixed>
test_span_processor_factory_create_span_processor_from_environment()  : void
test_span_processor_factory_default_span_processor()  : void
test_span_processor_factory_invalid_span_processor()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

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

Methods

processorProvider()

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

test_span_processor_factory_create_span_processor_from_environment()

public test_span_processor_factory_create_span_processor_from_environment(string $processorName, string $expected) : void
Parameters
$processorName : string
$expected : string
Tags
psalm-suppress

ArgumentTypeCoercion

Attributes
#[DataProvider]
'processorProvider'

test_span_processor_factory_default_span_processor()

public test_span_processor_factory_default_span_processor() : void

test_span_processor_factory_invalid_span_processor()

public test_span_processor_factory_invalid_span_processor() : void

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