OpenTelemetry PHP

ServiceTest extends TestCase
in package
uses TestState

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Resource\Detectors\Service::class

Table of Contents

Constants

UUID_REGEX  = '/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i'

Properties

$detector  : Service
$environmentVariables  : array<string|int, mixed>

Methods

setUp()  : void
test_sdk_get_resource_with_service_name()  : void
test_service_get_resource_multiple_calls_same_service_instance_id()  : void
test_service_get_resource_with_default_service_instance_id()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Constants

UUID_REGEX

public mixed UUID_REGEX = '/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i'

Properties

$environmentVariables

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

Methods

test_sdk_get_resource_with_service_name()

public test_sdk_get_resource_with_service_name() : void

test_service_get_resource_multiple_calls_same_service_instance_id()

public test_service_get_resource_multiple_calls_same_service_instance_id() : void

test_service_get_resource_with_default_service_instance_id()

public test_service_get_resource_with_default_service_instance_id() : 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