Automatic Instrumentation
This language instrumentation is using OpenTelemetry native-php SDK and instrumentation libraries.
Supported Versions
The minimal supported version of PHP is 8.0.0. The maximal supported version of PHP is 8.4.x, when PHP releases a new version we’ll add the support for it.
-
PHP version 8.0 has been deprecated and is no longer supported by the PHP team.
Instrumentation libraries support for this version have all reached end-of-life. -
PHP version 8.1 has limited library support and will be the next version to be deprecated.
-
PHP version 8.2+ is the recommended version for new projects.
Instrumentation Libraries
The following PHP modules will be auto instrumented by Odigos:
PHP Standards Recommendations (PSR):
psr/3 (log)
versions>=1
For all PHP versions
psr/6 (cache)
versions>=1
For all PHP versions
psr/16 (simple-cache)
versions>=1
For all PHP versions
psr/14 (event-dispatcher)
versions>=1
For all PHP versions
psr/15 (http-server-middleware)
versions>=1
For all PHP versions
psr/18 (http-client)
versions>=1
For all PHP versions
HTTP Clients:
php-http/httplug
versions>=2
For all PHP versions
guzzlehttp/guzzle
versions>=7
For all PHP versions
ext-curl
versions*
Only for PHP 8.2+
Frameworks:
We’re working on adding support for laravel
, cakephp
, wordpress
and yii2
frameworks.
slim/slim
versions>=4
For all PHP versions
symfony/http-kernel
versions*
For all PHP versions
symfony/http-client-contracts
versions*
For all PHP versions
codeigniter4/framework
versions>=4.3 <4.5
For all PHP versions
Databases:
ext-mongodb
versions>=1.13
For all PHP versions
ext-mysqli
versions*
Only for PHP 8.2+
ext-pdo
versions*
Only for PHP 8.2+
doctrine/dbal
versions>=3
Only for PHP 8.2+
Messaging Systems:
ext-amqp
versions*
Only for PHP 8.2+
ext-rdkafka
versions*
Only for PHP 8.2+
Atificial Intelligence:
openai-php/client
versions*
Only for PHP 8.1+