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

Breadcrumb

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

class LateBindingTracer

Hierarchy

  • class \OpenTelemetry\API\Trace\LateBindingTracer implements \OpenTelemetry\API\Trace\TracerInterface

Expanded class hierarchy of LateBindingTracer

File

vendor/open-telemetry/api/Trace/LateBindingTracer.php, line 9

Namespace

OpenTelemetry\API\Trace
View source
class LateBindingTracer implements TracerInterface {
    private ?TracerInterface $tracer = null;
    
    /** @param Closure(): TracerInterface $factory */
    public function __construct(Closure $factory) {
    }
    public function spanBuilder(string $spanName) : SpanBuilderInterface {
        return ($this->tracer ??= ($this->factory)())
            ->spanBuilder($spanName);
    }
    public function isEnabled() : bool {
        return true;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
LateBindingTracer::$tracer private property
LateBindingTracer::isEnabled public function Determine if the tracer is enabled. Instrumentation authors SHOULD call this method prior to
creating a new span.
@experimental
Overrides TracerInterface::isEnabled
LateBindingTracer::spanBuilder public function Overrides TracerInterface::spanBuilder
LateBindingTracer::__construct public function

API Navigation

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