ttrss/vendor/open-telemetry/context/ContextKeys.php

26 lines
493 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?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');
}
}