You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable or disabled auto instrumentation
This is done through the OpenTelemetry\SDK\Sdk::isInstrumentationDisabled method
* Add NAME public constant to instrumentation classes
* Implement class_exist
* Introduce warning
* Remove unrelated changes
* Remove balnk line
* Suppress psalm warnings
* Add configuration documentation
---------
Co-authored-by: Przemyslaw Delewski <[email protected]>
| OTEL_PHP_DISABLED_INSTRUMENTATIONS |[]| Instrumentation name(s) | symfony | Disable one or more installed auto-instrumentations, names are comma seperated. |
61
+
62
+
Configurations can be provided as environment variables, or via `php.ini` (or a file included by `php.ini`)
if (class_exists(Sdk::class) && Sdk::isInstrumentationDisabled(SymfonyInstrumentation::NAME) === true) {
10
+
return;
11
+
}
7
12
8
13
if (extension_loaded('otel_instrumentation') === false) {
9
14
trigger_error('The otel_instrumentation extension must be loaded in order to autoload the OpenTelemetry Laravel auto-instrumentation', E_USER_WARNING);
0 commit comments