Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceState.php

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

TraceState

Namespace

OpenTelemetry\API\Trace

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal