Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SpanBuilderInterface.php

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\Trace

Code

public function setParent(ContextInterface|false|null $context) : SpanBuilderInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal