Commit Graph

4 Commits

Author SHA1 Message Date
Brett McBride 4b9f1200bf
adding a configuration for disabling auto-instrumentations (#909)
* adding a configuration for disabling auto-instrumentations
addressing review feedback from pdelewski, provide a mechanism that can be used to disable auto-instrumentation packages
without actually uninstalling them.
A new variable, OTEL_PHP_DISABLED_INSTRUMENTATIONS, has been added which accepts a list of instrumentation names to be disabled.
Each instrumentation can call Instrumentation::isDisabled to determine if they should bail without registering hooks.

* moving instrumentation disabled into Sdk class
2023-01-12 10:55:48 +01:00
Brett McBride 01378ecf8a
disallow non-standard boolean config values (#870)
per spec, only 'true', 'false' are valid boolean values. anything else should be
interpreted as false and a warning emitted.
2022-11-29 14:31:09 +11:00
Brett McBride ba9899278f
Sdk builder (#845)
Adding an SDK builder and example usage.
2022-10-31 08:09:01 +11:00
Brett McBride a3a47a6ba4
adding OTEL_SDK_DISABLED support (#833) 2022-10-07 16:47:54 +11:00