SpanContextValidator
in package
Table of Contents
Constants
- INVALID_SPAN = '0000000000000000'
- INVALID_TRACE = '00000000000000000000000000000000'
- SPAN_LENGTH = 16
- SPAN_LENGTH_BYTES = 8
- TRACE_LENGTH = 32
- VALID_SPAN = '/^[0-9a-f]{16}$/'
- VALID_TRACE = '/^[0-9a-f]{32}$/'
Methods
- isValidSpanId() : bool
- isValidTraceId() : bool
Constants
INVALID_SPAN
public
mixed
INVALID_SPAN
= '0000000000000000'
INVALID_TRACE
public
mixed
INVALID_TRACE
= '00000000000000000000000000000000'
SPAN_LENGTH
public
mixed
SPAN_LENGTH
= 16
SPAN_LENGTH_BYTES
public
mixed
SPAN_LENGTH_BYTES
= 8
TRACE_LENGTH
public
mixed
TRACE_LENGTH
= 32
VALID_SPAN
public
mixed
VALID_SPAN
= '/^[0-9a-f]{16}$/'
VALID_TRACE
public
mixed
VALID_TRACE
= '/^[0-9a-f]{32}$/'
Methods
isValidSpanId()
public
static isValidSpanId(string $spanId) : bool
Parameters
- $spanId : string
Return values
bool —Returns a value that indicates whether a span id is valid
isValidTraceId()
public
static isValidTraceId(string $traceId) : bool
Parameters
- $traceId : string
Return values
bool —Returns a value that indicates whether a trace id is valid