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

Breadcrumb

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

function TraceState::validateMember

2 calls to TraceState::validateMember()
TraceState::parse in vendor/open-telemetry/api/Trace/TraceState.php
TraceState::with in vendor/open-telemetry/api/Trace/TraceState.php
Return a new TraceState object that inherits from this TraceState and contains the given key value pair.

File

vendor/open-telemetry/api/Trace/TraceState.php, line 152

Class

TraceState

Namespace

OpenTelemetry\API\Trace

Code

private static function validateMember(array $traceState, string $key, string $value) : bool {
    return (isset($traceState[$key]) || self::validateKey($key)) && self::validateValue($value) && (count($traceState) < self::MAX_LIST_MEMBERS || isset($traceState[$key]));
}

API Navigation

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