function SpanBuilderInterface::setParent
Sets the parent `Context`.
Parameters
ContextInterface|false|null $context the parent context, null to use the: current context, false to set no parent
Return value
SpanBuilderInterface this span builder
See also
https://github.com/open-telemetry/opentelemetry-specification/blob/main…
1 method overrides SpanBuilderInterface::setParent()
- NoopSpanBuilder::setParent in vendor/
open-telemetry/ api/ Trace/ NoopSpanBuilder.php - Sets the parent `Context`.
File
-
vendor/
open-telemetry/ api/ Trace/ SpanBuilderInterface.php, line 23
Class
- SpanBuilderInterface
- Obtained from a {
Namespace
OpenTelemetry\API\TraceCode
public function setParent(ContextInterface|false|null $context) : SpanBuilderInterface;