OpenTelemetry PHP

FriendlySpanConverterTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Trace\SpanExporter\FriendlySpanConverter::class

Table of Contents

Constants

TEST_DATA  = ['name' => 'my.service', 'parent_span_id' => '1000000000000000', 'kind' => 'KIND_INTERNAL', 'start' => 1505855794194009601, 'end' => 1505855799465726528, 'context' => ['trace_id' => '00000000000000000000000000000000', 'span_id' => '0000000000000000', 'trace_state' => 'foz=baz,foo=bar', 'trace_flags' => 0], 'resource' => ['telemetry.sdk.name' => 'opentelemetry', 'telemetry.sdk.language' => 'php', 'telemetry.sdk.version' => 'dev'], 'attributes' => ['fruit' => 'apple'], 'status' => ['code' => 'Error', 'description' => 'status_description'], 'events' => [['name' => 'validators.list', 'timestamp' => 1505855799433901068, 'attributes' => ['job' => 'stage.updateTime']], ['name' => 'user.created', 'timestamp' => 1505855799433901555, 'attributes' => ['name' => 'John Doe']]], 'links' => [['context' => ['trace_id' => '20000000000000000000000000000000', 'span_id' => '2000000000000000', 'trace_state' => 'foo=baz,foz=bar', 'trace_flags' => 0], 'attributes' => ['foo' => 'bar']], ['context' => ['trace_id' => '20000000000000000000000000000000', 'span_id' => '3000000000000000', 'trace_state' => 'baz=foz,bar=foo', 'trace_flags' => 0], 'attributes' => ['foz' => 'baz']]], 'schema_url' => 'https://opentelemetry.io/schemas/1.25.0']

Methods

createEventInterfaceMock()  : EventInterface
createLinkInterfaceMock()  : LinkInterface
createSchemaUrlMock()  : string
test_convert()  : void
createAttributesInterfaceMock()  : AttributesInterface
createInstrumentationScopeMock()  : InstrumentationScopeInterface
createResourceInfoMock()  : ResourceInfo
createSpanContextMock()  : SpanContextInterface
createSpanDataInterfaceMock()  : SpanDataInterface
createStatusDataMock()  : StatusDataInterface
createTraceStateInterfaceMock()  : TraceStateInterface

Constants

TEST_DATA

private mixed TEST_DATA = ['name' => 'my.service', 'parent_span_id' => '1000000000000000', 'kind' => 'KIND_INTERNAL', 'start' => 1505855794194009601, 'end' => 1505855799465726528, 'context' => ['trace_id' => '00000000000000000000000000000000', 'span_id' => '0000000000000000', 'trace_state' => 'foz=baz,foo=bar', 'trace_flags' => 0], 'resource' => ['telemetry.sdk.name' => 'opentelemetry', 'telemetry.sdk.language' => 'php', 'telemetry.sdk.version' => 'dev'], 'attributes' => ['fruit' => 'apple'], 'status' => ['code' => 'Error', 'description' => 'status_description'], 'events' => [['name' => 'validators.list', 'timestamp' => 1505855799433901068, 'attributes' => ['job' => 'stage.updateTime']], ['name' => 'user.created', 'timestamp' => 1505855799433901555, 'attributes' => ['name' => 'John Doe']]], 'links' => [['context' => ['trace_id' => '20000000000000000000000000000000', 'span_id' => '2000000000000000', 'trace_state' => 'foo=baz,foz=bar', 'trace_flags' => 0], 'attributes' => ['foo' => 'bar']], ['context' => ['trace_id' => '20000000000000000000000000000000', 'span_id' => '3000000000000000', 'trace_state' => 'baz=foz,bar=foo', 'trace_flags' => 0], 'attributes' => ['foz' => 'baz']]], 'schema_url' => 'https://opentelemetry.io/schemas/1.25.0']

Methods


        
On this page

Search results