function ContextInterface::createKey
Creates a new context key.
Parameters
non-empty-string $key name of the key:
Return value
ContextKeyInterface created key
See also
https://github.com/open-telemetry/opentelemetry-specification/blob/main…
1 method overrides ContextInterface::createKey()
- Context::createKey in vendor/
open-telemetry/ context/ Context.php - Creates a new context key.
File
-
vendor/
open-telemetry/ context/ ContextInterface.php, line 22
Class
- ContextInterface
- Immutable execution scoped propagation mechanism.
Namespace
OpenTelemetry\ContextCode
public static function createKey(string $key) : ContextKeyInterface;