Setting the file. One moment.
Subchapter 65.5
references/php.mdMarkdown733 BView on GitHub
Use the shared environment variables guidance in SKILL.md Step 4: set DD_SERVICE, DD_ENV, DD_VERSION.
Install the profiler extension:
curl --proto '=https' --tlsv1.2 -sSfLO https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php
php datadog-setup.php --enable-profiling --php-bin=allThe installer is interactive; run it with the user’s approval and prefer the non-interactive command it prints.
Configure: php datadog-setup.php config set -d datadog.service=<SERVICE_NAME> -d datadog.env=<ENV> -d datadog.version=<VERSION>.
Restart Apache, PHP-FPM, FrankenPHP, or other servers, then confirm php -v lists datadog-profiling.