function InstrumentationTrait::init
This method will be called from the API when the instrumentation has been activated (via activate()). Here you can put any bootstrapping code needed by the instrumentation. If not needed simply implement a method which returns TRUE.
File
-
vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php, line 105
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
public abstract function init() : bool;