The PHP Datadog Trace library is open source - view the Github repository for more information.
PHP APM supports the following PHP versions:
Version | Support type |
---|---|
8.0.x | Fully Supported (as of 0.52.0 ) |
7.4.x | Fully Supported |
7.3.x | Fully Supported |
7.2.x | Fully Supported |
7.1.x | Fully Supported |
7.0.x | Fully Supported |
5.6.x | Fully Supported |
5.5.x | Fully Supported (as of 0.49.0 ) |
5.4.x | Fully Supported |
PHP APM supports the following SAPI’s:
SAPI | Support type |
---|---|
apache2handler | Fully Supported |
cli | Fully Supported |
fpm-fcgi | Fully Supported |
cgi-fcgi | Fully Supported |
By default, Datadog supports all PHP web frameworks out of the box, which allows you to see traces for spans of supported libraries—for example: database and HTTP clients.
The following table enumerates some of the frameworks and versions Datadog successfully traces.
Web frameworks:
Module | Versions | Support Type |
---|---|---|
CakePHP | 2.x | All supported PHP versions |
CodeIgniter | 2.x, 3.x | PHP 7+ |
Laravel | 4.2, 5.x, 6.x | All supported PHP versions |
Laravel 8 | 8.x (as of 0.52.0 ) | All supported PHP versions |
Lumen | 5.2+ | All supported PHP versions |
Symfony 3 | 3.3, 3.4 | All supported PHP versions |
Symfony 4 | 4.x | All supported PHP versions |
Symfony 5 | 5.x (as of 0.50.0 ) | All supported PHP versions |
WordPress | 4.x, 5.x | PHP 7+ |
Zend Framework | 1.12 | All supported PHP versions |
Yii | 1.1, 2.0 | All supported PHP versions |
Drupal | All supported PHP versions | |
Magento | 1, 2 | All supported PHP versions |
Phalcon | 1.3, 3.4 | All supported PHP versions |
Slim | 2.x, 3.x, 4.x | All supported PHP versions |
Neos Flow | 1.1 | All supported PHP versions |
FuelPHP | 1.1 | PHP 7+ |
Note that even if you don’t see your web framework in this list, it is supported out of the box with the latest release of the tracer.
Datadog is continuously adding more support for in-depth tracing for PHP web-frameworks. To request support for additional span metadata and framework internals, contact our awesome support team.
Tracing from the CLI SAPI is disabled by default. To enable tracing of PHP CLI scripts, set DD_TRACE_CLI_ENABLED=true
.
Module | Versions | Support Type |
---|---|---|
CakePHP Console | 2.x | Fully Supported |
Laravel Artisan | 5.x | Fully Supported |
Symfony Console | Coming Soon |
To request support for additional CLI libraries, contact our awesome support team.
Module | Versions | Support Type |
---|---|---|
Amazon RDS (using PDO or MySQLi) | (Any Supported PHP) | Fully Supported |
Elasticsearch | 1.x | Fully Supported |
Eloquent | Laravel supported versions | Fully Supported |
Memcached | (Any Supported PHP) | Fully Supported |
MongoDB - via mongo extension | 1.4.x | Fully Supported |
MongoDB - via mongodb extension | (Any Supported PHP) | Coming Soon |
MySQLi | (Any Supported PHP) | Fully Supported |
PDO (MySQL, PostgreSQL, MariaDB) | (Any Supported PHP) | Fully Supported |
PhpRedis | 3, 4, 5 | Fully Supported |
Predis | 1.1 | Fully Supported |
AWS Couchbase | AWS PHP SDK 3 | Coming Soon |
AWS DynamoDB | AWS PHP SDK 3 | Coming Soon |
AWS ElastiCache | AWS PHP SDK 3 | Coming Soon |
Doctrine ORM | 2 | Coming Soon |
ODBC | (Any Supported PHP) | Coming Soon |
Solarium | 4.2 | Coming Soon |
To request support for additional datastores, contact our awesome support team.
Module | Versions | Support Type |
---|---|---|
Curl | (Any Supported PHP) | Fully Supported |
Guzzle | 5.x | Fully Supported |
Guzzle | 6.x | Fully Supported |
Beanstalkd | Coming Soon | |
ReactPHP | Coming Soon |
To request support for additional libraries, contact our awesome support team.
The call stack is limited on PHP 5. See the deep call stack troubleshooting page for more details.
Instrumenting generators is not supported on PHP 5 and PHP 7.
Documentation, liens et articles supplémentaires utiles: