function InstrumentationTrait::getVersion
The version of the instrumenting/instrumented library/package/project. If unknown or a lookup is too expensive simply return NULL.
See also
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.1…
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.1…
2 calls to InstrumentationTrait::getVersion()
- InstrumentationTrait::setMeterProvider in vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php - InstrumentationTrait::setTracerProvider in vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php
File
-
vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php, line 90
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 getVersion() : ?string;