Skip to content

Commit

Permalink
make tracer support frankenphp
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Feb 29, 2024
1 parent 022f639 commit 0841bd4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/sapi/sapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sapi_t datadog_php_sapi_from_name(string_view_t module) {
{SV("cli-server"), DATADOG_PHP_SAPI_CLI_SERVER},
{SV("embed"), DATADOG_PHP_SAPI_EMBED},
{SV("fpm-fcgi"), DATADOG_PHP_SAPI_FPM_FCGI},
{SV("frankenphp"), DATADOG_PHP_SAPI_FRANKENPHP},
{SV("litespeed"), DATADOG_PHP_SAPI_LITESPEED},
{SV("phpdbg"), DATADOG_PHP_SAPI_PHPDBG},
{SV("tea"), DATADOG_PHP_SAPI_TEA},
Expand Down
1 change: 1 addition & 0 deletions components/sapi/sapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ typedef enum {
DATADOG_PHP_SAPI_EMBED,
DATADOG_PHP_SAPI_LITESPEED,
DATADOG_PHP_SAPI_FPM_FCGI,
DATADOG_PHP_SAPI_FRANKENPHP,
DATADOG_PHP_SAPI_PHPDBG,
DATADOG_PHP_SAPI_TEA,
} datadog_php_sapi;
Expand Down
1 change: 1 addition & 0 deletions components/sapi/tests/sapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ TEST_CASE("recognize real sapis", "[sapi]") {
{"cli-server", DATADOG_PHP_SAPI_CLI_SERVER},
{"embed", DATADOG_PHP_SAPI_EMBED},
{"fpm-fcgi", DATADOG_PHP_SAPI_FPM_FCGI},
{"frankenphp", DATADOG_PHP_SAPI_FRANKENPHP},
{"litespeed", DATADOG_PHP_SAPI_LITESPEED},
{"phpdbg", DATADOG_PHP_SAPI_PHPDBG},
{"tea", DATADOG_PHP_SAPI_TEA},
Expand Down
1 change: 1 addition & 0 deletions ext/ddtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ static bool dd_is_compatible_sapi(datadog_php_string_view module_name) {
case DATADOG_PHP_SAPI_CLI:
case DATADOG_PHP_SAPI_CLI_SERVER:
case DATADOG_PHP_SAPI_FPM_FCGI:
case DATADOG_PHP_SAPI_FRANKENPHP:
case DATADOG_PHP_SAPI_TEA:
return true;

Expand Down

0 comments on commit 0841bd4

Please sign in to comment.