function Span::fromContext
@inheritDoc
Overrides SpanInterface::fromContext
4 calls to Span::fromContext()
- AutoRootSpan::shutdownHandler in vendor/
open-telemetry/ sdk/ Trace/ AutoRootSpan.php - @internal
- 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 {
- Span::getCurrent in vendor/
open-telemetry/ api/ Trace/ Span.php - @inheritDoc
- WithSpanHandler::post in vendor/
open-telemetry/ api/ Instrumentation/ WithSpanHandler.php
File
-
vendor/
open-telemetry/ api/ Trace/ Span.php, line 17
Class
Namespace
OpenTelemetry\API\TraceCode
public static final function fromContext(ContextInterface $context) : SpanInterface {
return $context->get(ContextKeys::span()) ?? self::getInvalid();
}