mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-26 16:37:33 +02:00
26 lines
493 B
PHP
26 lines
493 B
PHP
|
<?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');
|
||
|
}
|
||
|
}
|