function DebugScope::currentFiberId
@phan-suppress PhanUndeclaredClassReference @phan-suppress PhanUndeclaredClassMethod
2 calls to DebugScope::currentFiberId()
- DebugScope::__construct in vendor/
open-telemetry/ context/ DebugScope.php - DebugScope::__destruct in vendor/
open-telemetry/ context/ DebugScope.php
File
-
vendor/
open-telemetry/ context/ DebugScope.php, line 90
Class
- DebugScope
- @internal
Namespace
OpenTelemetry\ContextCode
private static function currentFiberId() : ?int {
if (PHP_VERSION_ID < 80100) {
return null;
}
assert(class_exists(Fiber::class, false));
if (!($fiber = Fiber::getCurrent())) {
return null;
}
return spl_object_id($fiber);
}