function Context::getRoot
@internal
4 calls to Context::getRoot()
- Context::resolve in vendor/
open-telemetry/ context/ Context.php - @internal OpenTelemetry
- ContextStorage::current in vendor/
open-telemetry/ context/ ContextStorage.php - Returns the current context.
- FiberBoundContextStorage::current in vendor/
open-telemetry/ context/ FiberBoundContextStorage.php - Returns the current context.
- MultiObserver::observe in vendor/
open-telemetry/ sdk/ Metrics/ MetricRegistry/ MultiObserver.php - Records the given absolute datapoint.
File
-
vendor/
open-telemetry/ context/ Context.php, line 63
Class
Namespace
OpenTelemetry\ContextCode
public static function getRoot() : ContextInterface {
static $empty;
return $empty ??= new self();
}