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

Breadcrumb

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

function SpanContextValidator::isValidSpanId

Return value

bool Returns a value that indicates whether a span id is valid

3 calls to SpanContextValidator::isValidSpanId()
RandomIdGenerator::generateSpanId in vendor/open-telemetry/sdk/Trace/RandomIdGenerator.php
SpanContext::__construct in vendor/open-telemetry/api/Trace/SpanContext.php
TraceContextPropagator::extractImpl in vendor/open-telemetry/api/Trace/Propagation/TraceContextPropagator.php

File

vendor/open-telemetry/api/Trace/SpanContextValidator.php, line 31

Class

SpanContextValidator

Namespace

OpenTelemetry\API\Trace

Code

public static function isValidSpanId(string $spanId) : bool {
    return ctype_xdigit($spanId) && strlen($spanId) === self::SPAN_LENGTH && $spanId !== self::INVALID_SPAN && $spanId === strtolower($spanId);
}

API Navigation

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