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

Breadcrumb

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

function ContextKeys::span

3 calls to ContextKeys::span()
Context::__construct in vendor/open-telemetry/context/Context.php
Span::fromContext in vendor/open-telemetry/api/Trace/Span.php
@inheritDoc
Span::storeInContext in vendor/open-telemetry/api/Trace/Span.php
@inheritDoc

File

vendor/open-telemetry/context/ContextKeys.php, line 12

Class

ContextKeys
@psalm-internal OpenTelemetry

Namespace

OpenTelemetry\Context

Code

public static function span() : ContextKeyInterface {
    static $instance;
    return $instance ??= Context::createKey('opentelemetry-trace-span-key');
}

API Navigation

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