OpenTelemetry PHP

MetricExporterFactoryTest extends TestCase
in package
uses TestState

Tags
psalm-suppress

UndefinedInterfaceMethod

Attributes
#[CoversClass]
\OpenTelemetry\Contrib\Otlp\MetricExporterFactory::class

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>
$transport  : TransportInterface
$transportFactory  : TransportFactoryInterface

Methods

configProvider()  : array<string|int, mixed>
setUp()  : void
temporalityProvider()  : array<string|int, mixed>
test_create()  : void
test_create_with_temporality()  : void
test_unknown_protocol_exception()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

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

Methods

configProvider()

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

temporalityProvider()

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

test_create()

public test_create(array<string|int, mixed> $env, string $endpoint, string $protocol, string $compression[, array<string|int, mixed> $headerKeys = [] ][, array<string|int, mixed> $expectedValues = [] ]) : void
Parameters
$env : array<string|int, mixed>
$endpoint : string
$protocol : string
$compression : string
$headerKeys : array<string|int, mixed> = []
$expectedValues : array<string|int, mixed> = []
Attributes
#[DataProvider]
'configProvider'

test_create_with_temporality()

public test_create_with_temporality(array<string|int, mixed> $env, string|null $expected) : void
Parameters
$env : array<string|int, mixed>
$expected : string|null
Attributes
#[DataProvider]
'temporalityProvider'

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