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

Breadcrumb

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

function RandomIdGenerator::generateSpanId

Overrides IdGeneratorInterface::generateSpanId

File

vendor/open-telemetry/sdk/Trace/RandomIdGenerator.php, line 24

Class

RandomIdGenerator

Namespace

OpenTelemetry\SDK\Trace

Code

public function generateSpanId() : string {
    do {
        $spanId = $this->randomHex(self::SPAN_ID_HEX_LENGTH);
    } while (!SpanContextValidator::isValidSpanId($spanId));
    return $spanId;
}

API Navigation

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