ImmutableSpan
in package
implements
SpanDataInterface
FinalYes
Tags
Table of Contents
Interfaces
- SpanDataInterface
- Represents an immutable snapshot of a {@see API\SpanInterface}.
Properties
- $attributes : AttributesInterface
- $endEpochNanos : int
- $events : array<string|int, mixed>
- $hasEnded : bool
- $links : array<string|int, mixed>
- $name : string
- $span : Span
- $status : StatusDataInterface
- $totalRecordedEvents : int
- $totalRecordedLinks : int
Methods
- __construct() : mixed
- getAttributes() : AttributesInterface
- getContext() : SpanContextInterface
- getEndEpochNanos() : int
- getEvents() : array<int, EventInterface>
- getInstrumentationScope() : InstrumentationScopeInterface
- getKind() : int
- getLinks() : array<int, LinkInterface>
- getName() : string
- getParentContext() : SpanContextInterface
- getParentSpanId() : string
- getResource() : ResourceInfo
- getSpanId() : string
- getStartEpochNanos() : int
- getStatus() : StatusDataInterface
- getTotalDroppedEvents() : int
- getTotalDroppedLinks() : int
- getTraceId() : string
- hasEnded() : bool
Properties
$attributes read-only
private
AttributesInterface
$attributes
$endEpochNanos read-only
private
int
$endEpochNanos
$events read-only
private
array<string|int, mixed>
$events
$hasEnded read-only
private
bool
$hasEnded
$links read-only
private
array<string|int, mixed>
$links
$name read-only
private
string
$name
$span read-only
private
Span
$span
$status read-only
private
StatusDataInterface
$status
$totalRecordedEvents read-only
private
int
$totalRecordedEvents
$totalRecordedLinks read-only
private
int
$totalRecordedLinks
Methods
__construct()
public
__construct(Span $span, non-empty-string $name, array<int, LinkInterface> $links, array<int, EventInterface> $events, AttributesInterface $attributes, int $totalRecordedLinks, int $totalRecordedEvents, StatusDataInterface $status, int $endEpochNanos, bool $hasEnded) : mixed
Parameters
- $span : Span
- $name : non-empty-string
- $links : array<int, LinkInterface>
- $events : array<int, EventInterface>
- $attributes : AttributesInterface
- $totalRecordedLinks : int
- $totalRecordedEvents : int
- $status : StatusDataInterface
- $endEpochNanos : int
- $hasEnded : bool
getAttributes()
public
getAttributes() : AttributesInterface
Return values
AttributesInterfacegetContext()
public
getContext() : SpanContextInterface
Return values
SpanContextInterfacegetEndEpochNanos()
public
getEndEpochNanos() : int
Return values
intgetEvents()
public
getEvents() : array<int, EventInterface>
Tags
Return values
array<int, EventInterface>getInstrumentationScope()
public
getInstrumentationScope() : InstrumentationScopeInterface
Return values
InstrumentationScopeInterfacegetKind()
public
getKind() : int
Return values
intgetLinks()
public
getLinks() : array<int, LinkInterface>
Tags
Return values
array<int, LinkInterface>getName()
public
getName() : string
Return values
stringgetParentContext()
public
getParentContext() : SpanContextInterface
Return values
SpanContextInterfacegetParentSpanId()
public
getParentSpanId() : string
Return values
stringgetResource()
public
getResource() : ResourceInfo
Return values
ResourceInfogetSpanId()
public
getSpanId() : string
Return values
stringgetStartEpochNanos()
public
getStartEpochNanos() : int
Return values
intgetStatus()
public
getStatus() : StatusDataInterface
Return values
StatusDataInterfacegetTotalDroppedEvents()
public
getTotalDroppedEvents() : int
Return values
intgetTotalDroppedLinks()
public
getTotalDroppedLinks() : int
Return values
intgetTraceId()
public
getTraceId() : string
Return values
stringhasEnded()
public
hasEnded() : bool