OpenTelemetry PHP

TraceContextValidator
in package

Table of Contents

Constants

TRACE_FLAG_LENGTH  = 2
TRACE_VERSION_REGEX  = '/^(?!ff)[\da-f]{2}$/'

Methods

isValidTraceFlag()  : bool
isValidTraceVersion()  : bool

Constants

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
Return values
bool

        
On this page

Search results