Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
InstrumentationTrait.php
function InstrumentationTrait::setLogger
File
vendor/
open-telemetry/
api/
Instrumentation/
InstrumentationTrait.php
, line 164
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
setLogger
(LoggerInterface
$logger
) : void {
$this
->
logger
=
$logger
; }
RSS feed