- An actively supported PHP version. See our maintenance policy.
- The OpenTelemetry PHP extension.
Install OpenTelemetry PHP extension
The OpenTelemetry PHP extension provides hooks in PHP functions that this package uses to instrument your application. This is a PHP extension that you need to install and enable in your PHP environment. First, make sure the required build dependencies are available on your system.php.ini, and its location can be found by running php --ini. Add the following lines to it:
INI
When using the docker-php-extension-installer script to install the
opentelemetry extension, the extension is automatically enabled and you don’t need to manually edit the php.ini file.