function InstrumentationTrait::initDefaults
1 call to InstrumentationTrait::initDefaults()
- InstrumentationTrait::__construct in vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php
File
-
vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php, line 185
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\InstrumentationCode
private function initDefaults() : void {
$this->propagator = new NoopTextMapPropagator();
$this->tracer = new NoopTracer();
$this->tracerProvider = new NoopTracerProvider();
/** @phan-suppress-next-line PhanAccessMethodInternal */
$this->meter = new NoopMeter();
$this->logger = new NullLogger();
}