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

Breadcrumb

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

function Span::storeInContext

@inheritDoc

Overrides ImplicitContextKeyedInterface::storeInContext

File

vendor/open-telemetry/api/Trace/Span.php, line 55

Class

Span

Namespace

OpenTelemetry\API\Trace

Code

public final function storeInContext(ContextInterface $context) : ContextInterface {
    if (LocalRootSpan::isLocalRoot($context)) {
        $context = LocalRootSpan::store($context, $this);
    }
    return $context->with(ContextKeys::span(), $this);
}

API Navigation

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