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

Breadcrumb

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

function NoopSpanBuilder::startSpan

Overrides SpanBuilderInterface::startSpan

File

vendor/open-telemetry/api/Trace/NoopSpanBuilder.php, line 51

Class

NoopSpanBuilder

Namespace

OpenTelemetry\API\Trace

Code

public function startSpan() : SpanInterface {
    $parentContext = Context::resolve($this->parentContext, $this->contextStorage);
    $span = Span::fromContext($parentContext);
    if ($span->isRecording()) {
        $span = Span::wrap($span->getContext());
    }
    return $span;
}

API Navigation

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