OpenTelemetry PHP

SpanBuilder
in package
implements SpanBuilderInterface

FinalYes

Table of Contents

Interfaces

SpanBuilderInterface
Obtained from a {@see TracerInterface} and used to construct a {@see SpanInterface}.

Properties

$attributesBuilder  : AttributesBuilderInterface
$instrumentationScope  : InstrumentationScopeInterface
$links  : array<int, LinkInterface>
$parentContext  : ContextInterface|false|null
$spanKind  : int
$spanName  : string
$startEpochNanos  : int
$totalNumberOfLinksAdded  : int
$tracerSharedState  : TracerSharedState

Methods

__construct()  : mixed
addLink()  : SpanBuilderInterface
setAttribute()  : SpanBuilderInterface
setAttributes()  : SpanBuilderInterface
setParent()  : SpanBuilderInterface
Sets the parent `Context`.
setSpanKind()  : SpanBuilderInterface
setStartTimestamp()  : SpanBuilderInterface
Sets an explicit start timestamp for the newly created {@see SpanInterface}.
startSpan()  : SpanInterface
Starts and returns a new {@see SpanInterface}.

Properties

$spanKind

private int $spanKind = \OpenTelemetry\API\Trace\SpanKind::KIND_INTERNAL
Tags
psalm-var

API\SpanKind::KIND_*

$totalNumberOfLinksAdded

private int $totalNumberOfLinksAdded = 0

Methods


        
On this page

Search results