TraceContextValidator
in package
Table of Contents
Constants
- TRACE_FLAG_LENGTH = 2
- TRACE_VERSION_REGEX = '/^(?!ff)[\da-f]{2}$/'
Methods
- isValidTraceFlag() : bool
- isValidTraceVersion() : bool
Constants
TRACE_FLAG_LENGTH
public
mixed
TRACE_FLAG_LENGTH
= 2
TRACE_VERSION_REGEX
public
mixed
TRACE_VERSION_REGEX
= '/^(?!ff)[\da-f]{2}$/'
Methods
isValidTraceFlag()
public
static isValidTraceFlag(string $traceFlag) : bool
Parameters
- $traceFlag : string
Return values
bool —Returns a value that indicates whether trace flag is valid TraceFlags must be exactly 1 bytes (1 char) representing a bit field
isValidTraceVersion()
public
static isValidTraceVersion(string $traceVersion) : bool
Parameters
- $traceVersion : string