function TraceState::validateValue
The value is an opaque string containing up to 256 printable ASCII [RFC0020] characters (i.e., the range 0x20 to 0x7E) except comma (,) and (=). Note that this also excludes tabs, newlines, carriage returns, etc.
See also
https://www.w3.org/TR/trace-context/#value
1 call to TraceState::validateValue()
- TraceState::validateMember in vendor/
open-telemetry/ api/ Trace/ TraceState.php
File
-
vendor/
open-telemetry/ api/ Trace/ TraceState.php, line 181
Class
Namespace
OpenTelemetry\API\TraceCode
private static function validateValue(string $key) : bool {
return preg_match(self::VALID_VALUE_BASE_REGEX, $key) !== 0 && preg_match(self::INVALID_VALUE_COMMA_EQUAL_REGEX, $key) === 0;
}