class SpanData (View source)

Properties

string|null $name
string|null $resource
string|null $service
string $env
string $version
string[] $meta_struct
string|null $type
string[] $meta
float[] $metrics
Throwable|null $exception
string $id
$links
string[] $peerServiceSources
SpanData|null $parent
SpanStack $stack

Methods

int
getDuration()

No description

int
getStartTime()

No description

getLink()

No description

string
hexId()

No description

Details

int getDuration()

No description

Return Value

int

Get the current span duration, in nanoseconds

int getStartTime()

No description

Return Value

int

Get the start time of the span, in nanoseconds

No description

Return Value

SpanLink

Get a pre-populated SpanLink object with the current span's trace and span IDs

string hexId()

No description

Return Value

string

the span id as zero-padded 16 character hexadecimal string.