SpanContext
in package
implements
SpanContextInterface
FinalYes
Table of Contents
Interfaces
Properties
- $invalidContext : SpanContextInterface|null
- $isRemote : bool
- $isSampled : bool
- $isValid : bool
- $spanId : string
- $traceFlags : int
- $traceId : string
- $traceState : TraceStateInterface|null
Methods
- create() : SpanContextInterface
- createFromRemoteParent() : SpanContextInterface
- getInvalid() : SpanContextInterface
- getSpanId() : string
- getSpanIdBinary() : string
- getTraceFlags() : int
- getTraceId() : string
- getTraceIdBinary() : string
- getTraceState() : TraceStateInterface|null
- isRemote() : bool
- isSampled() : bool
- isValid() : bool
- __construct() : mixed
Properties
$invalidContext
private
static SpanContextInterface|null
$invalidContext
= null
$isRemote read-only
private
bool
$isRemote
$isSampled read-only
private
bool
$isSampled
Tags
$isValid
private
bool
$isValid
= true
$spanId
private
string
$spanId
$traceFlags read-only
private
int
$traceFlags
$traceId
private
string
$traceId
$traceState read-only
private
TraceStateInterface|null
$traceState
= null
Methods
create()
public
static create(string $traceId, string $spanId[, int $traceFlags = TraceFlags::DEFAULT ][, TraceStateInterface|null $traceState = null ]) : SpanContextInterface
Parameters
- $traceId : string
- $spanId : string
- $traceFlags : int = TraceFlags::DEFAULT
- $traceState : TraceStateInterface|null = null
Tags
Return values
SpanContextInterfacecreateFromRemoteParent()
public
static createFromRemoteParent(string $traceId, string $spanId[, int $traceFlags = TraceFlags::DEFAULT ][, TraceStateInterface|null $traceState = null ]) : SpanContextInterface
Parameters
- $traceId : string
- $spanId : string
- $traceFlags : int = TraceFlags::DEFAULT
- $traceState : TraceStateInterface|null = null
Tags
Return values
SpanContextInterfacegetInvalid()
public
static getInvalid() : SpanContextInterface
Tags
Return values
SpanContextInterfacegetSpanId()
public
getSpanId() : string
Return values
stringgetSpanIdBinary()
public
getSpanIdBinary() : string
Return values
stringgetTraceFlags()
public
getTraceFlags() : int
Return values
intgetTraceId()
public
getTraceId() : string
Return values
stringgetTraceIdBinary()
public
getTraceIdBinary() : string
Return values
stringgetTraceState()
public
getTraceState() : TraceStateInterface|null
Return values
TraceStateInterface|nullisRemote()
public
isRemote() : bool
Return values
boolisSampled()
public
isSampled() : bool
Return values
boolisValid()
public
isValid() : bool
Return values
bool__construct()
private
__construct(string $traceId, string $spanId, int $traceFlags, bool $isRemote[, TraceStateInterface|null $traceState = null ]) : mixed
Parameters
- $traceId : string
- $spanId : string
- $traceFlags : int
- $isRemote : bool
- $traceState : TraceStateInterface|null = null