SpanContext
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
- $remote : bool
- $spanId : string
- $traceFlags : int
- $traceId : string
- $traceState : string
Methods
- __construct() : mixed
- invalid() : self
- An unset/invalid context (all-zero ids).
- isValid() : bool
- True when both ids are non-zero (a real, propagatable context).
Properties
$remote
public
bool
$remote
$spanId
public
string
$spanId
$traceFlags
public
int
$traceFlags
$traceId
public
string
$traceId
$traceState
public
string
$traceState
= ''
Methods
__construct()
public
__construct(string $traceId, string $spanId, int $traceFlags, bool $remote[, string $traceState = '' ]) : mixed
Parameters
- $traceId : string
- $spanId : string
- $traceFlags : int
- $remote : bool
- $traceState : string = ''
invalid()
An unset/invalid context (all-zero ids).
public
static invalid() : self
Return values
selfisValid()
True when both ids are non-zero (a real, propagatable context).
public
isValid() : bool