class RootSpanData extends SpanData (View source)

Properties

string|null $name from  SpanData
string|null $resource from  SpanData
string|null $service from  SpanData
string $env from  SpanData
string $version from  SpanData
string[] $meta_struct from  SpanData
string|null $type from  SpanData
string[] $meta from  SpanData
float[] $metrics from  SpanData
Throwable|null $exception from  SpanData
string $id from  SpanData
$links from  SpanData
string[] $peerServiceSources from  SpanData
SpanData|null $parent from  SpanData
SpanStack $stack from  SpanData
string $origin
array $propagatedTags
int $samplingPriority
int $propagatedSamplingPriority
string $tracestate
array $tracestateTags
string $parentId
string $traceId

Methods

int
getDuration()

No description

from  SpanData
int
getStartTime()

No description

from  SpanData
getLink()

No description

from  SpanData
string
hexId()

No description

from  SpanData

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.