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

Breadcrumb

  1. Drupal Core 11.1.x

ContextKeys.php

Same filename in this branch
  1. 11.1.x vendor/open-telemetry/api/Instrumentation/ContextKeys.php

Namespace

OpenTelemetry\Context

File

vendor/open-telemetry/context/ContextKeys.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\Context;


/**
 * @psalm-internal OpenTelemetry
 */
final class ContextKeys {
    public static function span() : ContextKeyInterface {
        static $instance;
        return $instance ??= Context::createKey('opentelemetry-trace-span-key');
    }
    public static function baggage() : ContextKeyInterface {
        static $instance;
        return $instance ??= Context::createKey('opentelemetry-trace-baggage-key');
    }

}

Classes

Title Deprecated Summary
ContextKeys @psalm-internal OpenTelemetry

API Navigation

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