You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This buildpack accepts several config vars. All of them are optional:
20
20
21
-
-`DDTRACE_EXT_VERSION` - The extension version that PHP is compiled with. Defaults to `20180731`.
22
-
-`DDTRACE_EXT_RELEASE` - The release name of [dd-trace-php](https://github.com/DataDog/dd-trace-php/releases/) to download. Defaults to `0.54.0`.
21
+
-`DDTRACE_EXT_PHP_API` - The PHP API version that your application uses. Defaults to `20210902`. Use `phpinfo()` to find the API version if you're not sure.
22
+
-`DDTRACE_EXT_RELEASE` - The release name of [dd-trace-php](https://github.com/DataDog/dd-trace-php/releases/) to download. Defaults to `0.82.0`.
23
23
-`DDTRACE_EXT_PKG_URL` - The URL to a dd-trace-php `.deb` file. This option overides `DDTRACE_EXT_RELEASE`.
24
24
25
-
### More information: `DDTRACE_EXT_VERSION`
25
+
### More information: `DDTRACE_EXT_PHP_API`
26
26
27
-
PHP on Heroku is compiled with a specific version of the ddtrace extension. By default, this buildpack enables version `20190902` of the extension. If PHP was compiled with a different version, you will see warnings like this in your application logs:
27
+
This buildpack does not determine that PHP API version automatically. The default value should work for most PHP versions, but if the version is wrong then you will see warnings like this in your application logs:
28
28
29
29
```
30
30
PHP Warning: PHP Startup: ddtrace: Unable to initialize module
31
-
Module compiled with module API=20180731
32
-
PHP compiled with module API=20190902
31
+
Module compiled with module API=20210902
32
+
PHP compiled with module API=20220829
33
33
These options need to match
34
34
```
35
35
36
-
You can change the extension version that is enabled by this buildpack by setting the `DDTRACE_EXT_VERSION` config var in Heroku. For example:
36
+
You can change the version by setting the `DDTRACE_EXT_VERSION` config var in Heroku. For example:
0 commit comments