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

Breadcrumb

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

function SpanConverter::traceFlags

1 call to SpanConverter::traceFlags()
SpanConverter::convertSpan in vendor/open-telemetry/exporter-otlp/SpanConverter.php

File

vendor/open-telemetry/exporter-otlp/SpanConverter.php, line 191

Class

SpanConverter

Namespace

OpenTelemetry\Contrib\Otlp

Code

private static function traceFlags(SpanContextInterface $spanContext) : int {
    $flags = $spanContext->getTraceFlags();
    $flags |= SpanFlags::SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK;
    if ($spanContext->isRemote()) {
        $flags |= SpanFlags::SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK;
    }
    return $flags;
}

API Navigation

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