summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/context/ContextKeys.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/open-telemetry/context/ContextKeys.php')
-rw-r--r--vendor/open-telemetry/context/ContextKeys.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/open-telemetry/context/ContextKeys.php b/vendor/open-telemetry/context/ContextKeys.php
new file mode 100644
index 000000000..bc1022568
--- /dev/null
+++ b/vendor/open-telemetry/context/ContextKeys.php
@@ -0,0 +1,25 @@
+<?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');
+ }
+}