function TraceContextValidator::isValidTraceFlag
Return value
bool Returns a value that indicates whether trace flag is valid TraceFlags must be exactly 1 bytes (1 char) representing a bit field
1 call to TraceContextValidator::isValidTraceFlag()
- TraceContextPropagator::extractImpl in vendor/
open-telemetry/ api/ Trace/ Propagation/ TraceContextPropagator.php
File
-
vendor/
open-telemetry/ api/ Trace/ Propagation/ TraceContextValidator.php, line 23
Class
Namespace
OpenTelemetry\API\Trace\PropagationCode
public static function isValidTraceFlag(string $traceFlag) : bool {
return ctype_xdigit($traceFlag) && strlen($traceFlag) === self::TRACE_FLAG_LENGTH;
}