function Context::resolve
@internal OpenTelemetry
3 calls to Context::resolve()
- MetricRegistry::record in vendor/
open-telemetry/ sdk/ Metrics/ MetricRegistry/ MetricRegistry.php - NoopSpanBuilder::startSpan in vendor/
open-telemetry/ api/ Trace/ NoopSpanBuilder.php - Starts and returns a new { The user _MUST_ manually end the span by calling { This method does _NOT_ automatically install the span into the current context. The user is responsible for calling {
- SpanBuilder::startSpan in vendor/
open-telemetry/ sdk/ Trace/ SpanBuilder.php - @inheritDoc
File
-
vendor/
open-telemetry/ context/ Context.php, line 53
Class
Namespace
OpenTelemetry\ContextCode
public static function resolve(ContextInterface|false|null $context, ?ContextStorageInterface $contextStorage = null) : ContextInterface {
return $context ?? ($contextStorage ?? self::storage())->current() ?: self::getRoot();
}