Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
InstrumentationTrait.php
function InstrumentationTrait::getTracer
File
vendor/
open-telemetry/
api/
Instrumentation/
InstrumentationTrait.php
, line 145
Class
InstrumentationTrait
This trait in conjunction with the InstrumentationInterface is meant as a base for instrumentations for the OpenTelemetry API. Instrumentations need to implement the abstract methods of this trait (besides any instrumentation specific code)
Namespace
OpenTelemetry\API\Instrumentation
Code
public
function
getTracer
() : TracerInterface {
return
$this
->
tracer
; }
RSS feed