diff --git a/ext/php7/configuration.c b/ext/php7/configuration.c index 498740cc9..346a2f319 100644 --- a/ext/php7/configuration.c +++ b/ext/php7/configuration.c @@ -96,6 +96,10 @@ static void dd_ini_env_to_ini_name(const zai_string_view env_name, zai_config_na dd_copy_tolower(ini_name->ptr, env_name.ptr); ini_name->ptr[sizeof("signalfx") - 1] = '.'; ini_name->len = env_name.len; + + if (env_name.ptr == strstr(env_name.ptr, "SIGNALFX_TRACE_")) { + ini_name->ptr[sizeof("signalfx.trace") - 1] = '.'; + } } else { ini_name->len = 0; assert(false && "Unexpected env var name: missing 'DD_' prefix"); diff --git a/ext/php8/configuration.c b/ext/php8/configuration.c index 498740cc9..346a2f319 100644 --- a/ext/php8/configuration.c +++ b/ext/php8/configuration.c @@ -96,6 +96,10 @@ static void dd_ini_env_to_ini_name(const zai_string_view env_name, zai_config_na dd_copy_tolower(ini_name->ptr, env_name.ptr); ini_name->ptr[sizeof("signalfx") - 1] = '.'; ini_name->len = env_name.len; + + if (env_name.ptr == strstr(env_name.ptr, "SIGNALFX_TRACE_")) { + ini_name->ptr[sizeof("signalfx.trace") - 1] = '.'; + } } else { ini_name->len = 0; assert(false && "Unexpected env var name: missing 'DD_' prefix"); diff --git a/signalfx-setup.php b/signalfx-setup.php index f10e6a91d..5fa6d01aa 100644 --- a/signalfx-setup.php +++ b/signalfx-setup.php @@ -1163,7 +1163,7 @@ function get_ini_settings($requestInitHookPath) 'description' => 'Enables or disables tracing (set by the installer, do not change it)', ], [ - 'name' => 'ddtrace.request_init_hook', + 'name' => 'signalfx.trace.request_init_hook', 'default' => $requestInitHookPath, 'commented' => false, 'description' => 'Path to the request init hook (set by the installer, do not change it)',