SpanConverterTest
extends TestCase
-
#[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
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
-
-
#[DataProvider]
-
'attributeAreCoercedCorrectlyDataProvider'
test_convert_span_to_payload()
public
test_convert_span_to_payload() : void
test_multiple_resources_result_in_multiple_resource_spans()
public
test_multiple_resources_result_in_multiple_resource_spans() : void
test_otlp_happy_path_span()
public
test_otlp_happy_path_span() : void
test_otlp_no_spans()
public
test_otlp_no_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
-
-
#[DataProvider]
-
'spanKindProvider'
test_span_with_error_status()
public
test_span_with_error_status() : void