function ContextStorageInterface::attach
Attaches the context as active context.
Parameters
ContextInterface $context context to attach:
Return value
ContextStorageScopeInterface scope to detach the context and restore the previous context
3 methods override ContextStorageInterface::attach()
- ContextStorage::attach in vendor/
open-telemetry/ context/ ContextStorage.php - Attaches the context as active context.
- FiberBoundContextStorage::attach in vendor/
open-telemetry/ context/ FiberBoundContextStorage.php - Attaches the context as active context.
- FiberBoundContextStorageExecutionAwareBC::attach in vendor/
open-telemetry/ context/ FiberBoundContextStorageExecutionAwareBC.php - Attaches the context as active context.
File
-
vendor/
open-telemetry/ context/ ContextStorageInterface.php, line 31
Class
Namespace
OpenTelemetry\ContextCode
public function attach(ContextInterface $context) : ContextStorageScopeInterface;