function ContextStorageInterface::scope
Returns the current scope.
Return value
ContextStorageScopeInterface|null current scope, or null if no scope was attached in the current execution unit
3 methods override ContextStorageInterface::scope()
- ContextStorage::scope in vendor/
open-telemetry/ context/ ContextStorage.php - Returns the current scope.
- FiberBoundContextStorage::scope in vendor/
open-telemetry/ context/ FiberBoundContextStorage.php - Returns the current scope.
- FiberBoundContextStorageExecutionAwareBC::scope in vendor/
open-telemetry/ context/ FiberBoundContextStorageExecutionAwareBC.php - Returns the current scope.
File
-
vendor/
open-telemetry/ context/ ContextStorageInterface.php, line 15
Class
Namespace
OpenTelemetry\ContextCode
public function scope() : ?ContextStorageScopeInterface;