Table of Contents
Interfaces
- SpanConverterInterface
Constants
-
KEY_DROPPED_ATTRIBUTES_COUNT
= 'otel.dropped_attributes_count'
-
KEY_DROPPED_EVENTS_COUNT
= 'otel.dropped_events_count'
-
KEY_DROPPED_LINKS_COUNT
= 'otel.dropped_links_count'
-
KEY_INSTRUMENTATION_SCOPE_NAME
= 'otel.scope.name'
-
KEY_INSTRUMENTATION_SCOPE_VERSION
= 'otel.scope.version'
-
NANOS_PER_MICROSECOND
= 1000
-
NET_PEER_IP_KEY
= 'net.peer.ip'
-
REMOTE_ENDPOINT_PREFERRED_ATTRIBUTE_TO_RANK_MAP
= ['peer.service' => 1, 'net.peer.name' => 2, 'net.peer.ip' => 3, 'peer.hostname' => 4, 'peer.address' => 5, 'http.host' => 6, 'db.name' => 7]
-
STATUS_CODE_TAG_KEY
= 'otel.status_code'
-
STATUS_DESCRIPTION_TAG_KEY
= 'error'
Properties
-
$defaultServiceName
: string
Methods
-
__construct()
: mixed
-
convert()
: array<string|int, mixed>
-
nanosToMicros()
: int
-
convertEventAttributesToJson()
: string|null
-
convertSpan()
: array<string|int, mixed>
-
findRemoteEndpointPreferredAttribute()
: array<string|int, mixed>|null
-
getPortNumberFromSpanAttributes()
: int|null
-
getRemoteEndpointDataFromIpAddressAndPort()
: array<string|int, mixed>|null
-
sanitiseTagValue()
: string
-
toAnnotation()
: array<string|int, mixed>
-
toRemoteEndpoint()
: array<string|int, mixed>|null
-
toSpanKind()
: string|null
KEY_DROPPED_ATTRIBUTES_COUNT
public
mixed
KEY_DROPPED_ATTRIBUTES_COUNT
= 'otel.dropped_attributes_count'
KEY_DROPPED_EVENTS_COUNT
public
mixed
KEY_DROPPED_EVENTS_COUNT
= 'otel.dropped_events_count'
KEY_DROPPED_LINKS_COUNT
public
mixed
KEY_DROPPED_LINKS_COUNT
= 'otel.dropped_links_count'
KEY_INSTRUMENTATION_SCOPE_NAME
public
mixed
KEY_INSTRUMENTATION_SCOPE_NAME
= 'otel.scope.name'
KEY_INSTRUMENTATION_SCOPE_VERSION
public
mixed
KEY_INSTRUMENTATION_SCOPE_VERSION
= 'otel.scope.version'
NANOS_PER_MICROSECOND
public
mixed
NANOS_PER_MICROSECOND
= 1000
NET_PEER_IP_KEY
public
mixed
NET_PEER_IP_KEY
= 'net.peer.ip'
REMOTE_ENDPOINT_PREFERRED_ATTRIBUTE_TO_RANK_MAP
public
mixed
REMOTE_ENDPOINT_PREFERRED_ATTRIBUTE_TO_RANK_MAP
= ['peer.service' => 1, 'net.peer.name' => 2, 'net.peer.ip' => 3, 'peer.hostname' => 4, 'peer.address' => 5, 'http.host' => 6, 'db.name' => 7]
STATUS_CODE_TAG_KEY
public
mixed
STATUS_CODE_TAG_KEY
= 'otel.status_code'
STATUS_DESCRIPTION_TAG_KEY
public
mixed
STATUS_DESCRIPTION_TAG_KEY
= 'error'
$defaultServiceName
read-only
private
string
$defaultServiceName
__construct()
public
__construct() : mixed
convert()
public
convert(iterable<string|int, mixed> $spans) : array<string|int, mixed>
Parameters
-
$spans
: iterable<string|int, mixed>
-
Return values
array<string|int, mixed>
nanosToMicros()
public
static nanosToMicros(int $nanoseconds) : int
Parameters
-
$nanoseconds
: int
-
-
psalm-pure
-
convertEventAttributesToJson()
private
static convertEventAttributesToJson(EventInterface $event) : string|null
Parameters
-
$event
: EventInterface
-
Return values
string|null
convertSpan()
private
convertSpan(SpanDataInterface $span) : array<string|int, mixed>
Parameters
-
$span
: SpanDataInterface
-
Return values
array<string|int, mixed>
findRemoteEndpointPreferredAttribute()
private
static findRemoteEndpointPreferredAttribute(SpanDataInterface $span) : array<string|int, mixed>|null
Parameters
-
$span
: SpanDataInterface
-
Return values
array<string|int, mixed>|null
getPortNumberFromSpanAttributes()
private
static getPortNumberFromSpanAttributes(SpanDataInterface $span) : int|null
Parameters
-
$span
: SpanDataInterface
-
getRemoteEndpointDataFromIpAddressAndPort()
private
static getRemoteEndpointDataFromIpAddressAndPort(string $ipString, int|null $portNumber) : array<string|int, mixed>|null
Parameters
-
$ipString
: string
-
-
$portNumber
: int|null
-
Return values
array<string|int, mixed>|null
sanitiseTagValue()
private
sanitiseTagValue(mixed $value) : string
Parameters
-
$value
: mixed
-
toAnnotation()
private
static toAnnotation(EventInterface $event) : array<string|int, mixed>
Parameters
-
$event
: EventInterface
-
Return values
array<string|int, mixed>
toRemoteEndpoint()
private
static toRemoteEndpoint(SpanDataInterface $span) : array<string|int, mixed>|null
Parameters
-
$span
: SpanDataInterface
-
Return values
array<string|int, mixed>|null
toSpanKind()
private
static toSpanKind(SpanDataInterface $span) : string|null
Parameters
-
$span
: SpanDataInterface
-
Return values
string|null