function TraceState::validateKey
The Key is opaque string that is an identifier for a vendor. It can be up to 256 characters and MUST begin with a lowercase letter or a digit, and can only contain lowercase letters (a-z), digits (0-9), underscores (_), dashes (-), asterisks (*), and forward slashes (/). For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
See also
https://www.w3.org/TR/trace-context/#key
1 call to TraceState::validateKey()
- TraceState::validateMember in vendor/
open-telemetry/ api/ Trace/ TraceState.php
File
-
vendor/
open-telemetry/ api/ Trace/ TraceState.php, line 169
Class
Namespace
OpenTelemetry\API\TraceCode
private static function validateKey(string $key) : bool {
return preg_match(self::VALID_KEY_REGEX, $key) !== 0;
}