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

Breadcrumb

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

function CachedInstrumentation::tracer

File

vendor/open-telemetry/api/Instrumentation/CachedInstrumentation.php, line 52

Class

CachedInstrumentation
Provides access to cached {@link TracerInterface} and {@link MeterInterface} instances.

Namespace

OpenTelemetry\API\Instrumentation

Code

public function tracer() : TracerInterface {
    $tracerProvider = Globals::tracerProvider();
    return $this->tracers[$tracerProvider] ??= $tracerProvider->getTracer($this->name, $this->version, $this->schemaUrl, $this->attributes);
}

API Navigation

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