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

Breadcrumb

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

function FriendlySpanConverter::convertKind

Translates SpanKind from its integer representation to a more human friendly string.

1 call to FriendlySpanConverter::convertKind()
FriendlySpanConverter::convertSpan in vendor/open-telemetry/sdk/Trace/SpanExporter/FriendlySpanConverter.php
convertSpan does the heavy lifting converting a span into an array

File

vendor/open-telemetry/sdk/Trace/SpanExporter/FriendlySpanConverter.php, line 94

Class

FriendlySpanConverter

Namespace

OpenTelemetry\SDK\Trace\SpanExporter

Code

private function convertKind(int $kind) : string {
    return array_flip((new ReflectionClass(SpanKind::class))->getConstants())[$kind];
}

API Navigation

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