OpenTelemetry PHP

FriendlySpanConverter
in package
implements SpanConverterInterface

Table of Contents

Interfaces

SpanConverterInterface

Constants

ATTRIBUTES_ATTR  = 'attributes'
CODE_ATTR  = 'code'
CONTEXT_ATTR  = 'context'
DESCRIPTION_ATTR  = 'description'
END_ATTR  = 'end'
EVENTS_ATTR  = 'events'
KIND_ATTR  = 'kind'
LINKS_ATTR  = 'links'
NAME_ATTR  = 'name'
PARENT_SPAN_ATTR  = 'parent_span_id'
RESOURCE_ATTR  = 'resource'
SCHEMA_URL_ATTR  = 'schema_url'
SPAN_ID_ATTR  = 'span_id'
START_ATTR  = 'start'
STATUS_ATTR  = 'status'
TIMESTAMP_ATTR  = 'timestamp'
TRACE_FLAGS_ATTR  = 'trace_flags'
TRACE_ID_ATTR  = 'trace_id'
TRACE_STATE_ATTR  = 'trace_state'

Methods

convert()  : array<string|int, mixed>
convertAttributes()  : array<string|int, mixed>
convertContext()  : array<string|int, mixed>
convertEvents()  : array<string|int, mixed>
convertKind()  : string
Translates SpanKind from its integer representation to a more human friendly string.
convertLinks()  : array<string|int, mixed>
convertResource()  : array<string|int, mixed>
convertSchemaUrl()  : string
convertSpan()  : array<string|int, mixed>
convertSpan does the heavy lifting converting a span into an array
covertParentContext()  : string
covertStatus()  : array<string|int, mixed>

Constants

Methods

convert()

public convert(iterable<string|int, mixed> $spans) : array<string|int, mixed>
Parameters
$spans : iterable<string|int, mixed>
Return values
array<string|int, mixed>

convertKind()

Translates SpanKind from its integer representation to a more human friendly string.

private convertKind(int $kind) : string
Parameters
$kind : int
Return values
string

convertSchemaUrl()

private convertSchemaUrl(string|null $schemaUrl) : string
Parameters
$schemaUrl : string|null
Return values
string

        
On this page

Search results