Table of Contents
Interfaces
- SpanDataInterface
- Represents an immutable snapshot of a {@see API\SpanInterface}.
Properties
-
$attributesBuilder
: AttributesBuilderInterface
-
$context
: SpanContextInterface
-
$endEpochNanos
: int
-
$events
: array<int, EventInterface>
-
$hasEnded
: bool
-
$instrumentationScope
: InstrumentationScope
-
$kind
: int
-
$links
: array<int, LinkInterface>
-
$name
: non-empty-string
-
$parentContext
: SpanContextInterface
-
$resource
: ResourceInfo
-
$startEpochNanos
: int
-
$status
: StatusData
-
$totalRecordedEvents
: int
-
$totalRecordedLinks
: int
Methods
-
__construct()
: mixed
-
addAttribute()
: self
-
addEvent()
: self
-
addLink()
: self
-
getAttributes()
: AttributesInterface
-
getContext()
: SpanContextInterface
-
getEndEpochNanos()
: int
-
getEvents()
: array<int, EventInterface>
-
getInstrumentationScope()
: InstrumentationScope
-
getKind()
: int
-
getLinks()
: array<int, LinkInterface>
-
getName()
: string
-
getParentContext()
: SpanContextInterface
-
getParentSpanId()
: string
-
getResource()
: ResourceInfo
-
getSpanId()
: string
-
getStartEpochNanos()
: int
-
getStatus()
: StatusData
-
getTotalDroppedEvents()
: int
-
getTotalDroppedLinks()
: int
-
getTraceId()
: string
-
hasEnded()
: bool
-
setContext()
: self
-
setEndEpochNanos()
: self
-
setEvents()
: self
-
setHasEnded()
: self
-
setInstrumentationScope()
: self
-
setKind()
: self
-
setLinks()
: self
-
setName()
: self
-
setParentContext()
: self
-
setResource()
: self
-
setStartEpochNanos()
: self
-
setStatus()
: self
-
setTotalRecordedEvents()
: self
-
setTotalRecordedLinks()
: self
$attributesBuilder
private
AttributesBuilderInterface
$attributesBuilder
$context
private
SpanContextInterface
$context
$endEpochNanos
private
int
$endEpochNanos
= 1505855799465726528
$events
private
array<int, EventInterface>
$events
= []
$hasEnded
private
bool
$hasEnded
= false
$instrumentationScope
private
InstrumentationScope
$instrumentationScope
$kind
private
int
$kind
= \OpenTelemetry\API\Trace\SpanKind::KIND_INTERNAL
$links
private
array<int, LinkInterface>
$links
= []
$name
private
non-empty-string
$name
= 'test-span-data'
$parentContext
private
SpanContextInterface
$parentContext
$resource
private
ResourceInfo
$resource
$startEpochNanos
private
int
$startEpochNanos
= 1505855794194009601
$status
private
StatusData
$status
$totalRecordedEvents
private
int
$totalRecordedEvents
= 0
$totalRecordedLinks
private
int
$totalRecordedLinks
= 0
__construct()
public
__construct() : mixed
addAttribute()
public
addAttribute(string $key, mixed $value) : self
Parameters
-
$key
: string
-
-
$value
: mixed
-
addEvent()
public
addEvent(string $name, AttributesInterface $attributes[, int|null $timestamp = null ]) : self
Parameters
-
$name
: string
-
-
$attributes
: AttributesInterface
-
-
$timestamp
: int|null
= null
-
addLink()
public
addLink(SpanContextInterface $context, AttributesInterface $attributes) : self
Parameters
-
$context
: SpanContextInterface
-
-
$attributes
: AttributesInterface
-
getAttributes()
public
getAttributes() : AttributesInterface
getContext()
public
getContext() : SpanContextInterface
getEndEpochNanos()
public
getEndEpochNanos() : int
getEvents()
public
getEvents() : array<int, EventInterface>
-
inheritDoc
-
getInstrumentationScope()
public
getInstrumentationScope() : InstrumentationScope
getKind()
public
getKind() : int
getLinks()
public
getLinks() : array<int, LinkInterface>
-
inheritDoc
-
getName()
public
getName() : string
getParentContext()
public
getParentContext() : SpanContextInterface
getParentSpanId()
public
getParentSpanId() : string
getResource()
public
getResource() : ResourceInfo
getSpanId()
public
getSpanId() : string
getStartEpochNanos()
public
getStartEpochNanos() : int
getStatus()
public
getStatus() : StatusData
getTotalDroppedEvents()
public
getTotalDroppedEvents() : int
getTotalDroppedLinks()
public
getTotalDroppedLinks() : int
getTraceId()
public
getTraceId() : string
hasEnded()
public
hasEnded() : bool
setContext()
public
setContext(SpanContextInterface $context) : self
Parameters
-
$context
: SpanContextInterface
-
setEndEpochNanos()
public
setEndEpochNanos(int $endEpochNanos) : self
Parameters
-
$endEpochNanos
: int
-
setEvents()
public
setEvents(array<int, EventInterface> $events) : self
Parameters
-
$events
: array<int, EventInterface>
-
setHasEnded()
public
setHasEnded(bool $hasEnded) : self
Parameters
-
$hasEnded
: bool
-
setInstrumentationScope()
public
setInstrumentationScope(InstrumentationScope $instrumentationScope) : self
Parameters
-
$instrumentationScope
: InstrumentationScope
-
setKind()
public
setKind(int $kind) : self
Parameters
-
$kind
: int
-
setLinks()
public
setLinks(array<int, LinkInterface> $links) : self
Parameters
-
$links
: array<int, LinkInterface>
-
setName()
public
setName(non-empty-string $name) : self
Parameters
-
$name
: non-empty-string
-
setParentContext()
public
setParentContext(SpanContextInterface $parentContext) : self
Parameters
-
$parentContext
: SpanContextInterface
-
setResource()
public
setResource(ResourceInfo $resource) : self
Parameters
-
$resource
: ResourceInfo
-
setStartEpochNanos()
public
setStartEpochNanos(int $startEpochNanos) : self
Parameters
-
$startEpochNanos
: int
-
setStatus()
public
setStatus(StatusData $status) : self
Parameters
-
$status
: StatusData
-
setTotalRecordedEvents()
public
setTotalRecordedEvents(int $totalRecordedEvents) : self
Parameters
-
$totalRecordedEvents
: int
-
setTotalRecordedLinks()
public
setTotalRecordedLinks(int $totalRecordedLinks) : self
Parameters
-
$totalRecordedLinks
: int
-