OpenTelemetry PHP

SpanConverterTest extends TestCase
in package

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

Table of Contents

Methods

attributeAreCoercedCorrectlyDataProvider()  : array<string|int, mixed>
spanKindProvider()  : array<string|int, mixed>
test_attribute_are_coerced_correctly()  : void
test_convert_span_to_payload()  : void
test_multiple_resources_result_in_multiple_resource_spans()  : void
test_otlp_happy_path_span()  : void
test_otlp_no_spans()  : void
test_resources_from_multiple_spans_are_not_duplicated()  : void
test_span_context_is_remote_flags()  : void
test_span_kind()  : void
test_span_with_error_status()  : void

Methods

attributeAreCoercedCorrectlyDataProvider()

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

spanKindProvider()

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

test_attribute_are_coerced_correctly()

public test_attribute_are_coerced_correctly(mixed $actual, mixed $expected) : void
Parameters
$actual : mixed
$expected : mixed
Attributes
#[DataProvider]
'attributeAreCoercedCorrectlyDataProvider'

test_multiple_resources_result_in_multiple_resource_spans()

public test_multiple_resources_result_in_multiple_resource_spans() : void

test_resources_from_multiple_spans_are_not_duplicated()

public test_resources_from_multiple_spans_are_not_duplicated() : void

test_span_context_is_remote_flags()

public test_span_context_is_remote_flags() : void

test_span_kind()

public test_span_kind(mixed $kind, mixed $expected) : void
Parameters
$kind : mixed
$expected : mixed
Attributes
#[DataProvider]
'spanKindProvider'

        
On this page

Search results