ContextKeys.php
Same filename in this branch
Namespace
OpenTelemetry\ContextFile
-
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 |