function ContextInterface::withContextValue
Returns a context with the given value set.
Parameters
ImplicitContextKeyedInterface $value value to set:
Return value
ContextInterface a context with the given `$value`
See also
https://github.com/open-telemetry/opentelemetry-specification/blob/main…
1 method overrides ContextInterface::withContextValue()
- Context::withContextValue in vendor/
open-telemetry/ context/ Context.php - Returns a context with the given value set.
File
-
vendor/
open-telemetry/ context/ ContextInterface.php, line 74
Class
- ContextInterface
- Immutable execution scoped propagation mechanism.
Namespace
OpenTelemetry\ContextCode
public function withContextValue(ImplicitContextKeyedInterface $value) : ContextInterface;