Skip to content

Commit

Permalink
Refork - fix request_init_hook ini name in setup script (#88)
Browse files Browse the repository at this point in the history
* Fix request_init_hook ini name in setup script

* No deprecation warn for DDTRACE_REQUEST_INIT_HOOK
  • Loading branch information
agoallikmaa authored Nov 2, 2022
1 parent 6fe7337 commit c2a86dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ext/php7/startup_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ void ddtrace_startup_diagnostics(HashTable *ht, bool quick) {
} else if (strcmp(old_name->ptr, "SIGNALFX_SERVICE_NAME") == 0) {
// This variation is preferred for SFX, do not warn
continue;
} else if (strcmp(old_name->ptr, "DDTRACE_REQUEST_INIT_HOOK") == 0) {
// This variation is still necessary, do not warn
continue;
}
zend_string *message = zend_strpprintf(0, "'%s=%s' is deprecated, use %s instead.", old_name->ptr,
ZSTR_VAL(cfg->ini_entries[0]->value), cfg->names[0].ptr);
Expand Down
3 changes: 3 additions & 0 deletions ext/php8/startup_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ void ddtrace_startup_diagnostics(HashTable *ht, bool quick) {
} else if (strcmp(old_name->ptr, "SIGNALFX_SERVICE_NAME") == 0) {
// This variation is preferred for SFX, do not warn
continue;
} else if (strcmp(old_name->ptr, "DDTRACE_REQUEST_INIT_HOOK") == 0) {
// This variation is still necessary, do not warn
continue;
}
zend_string *message = zend_strpprintf(0, "'%s=%s' is deprecated, use %s instead.", old_name->ptr,
ZSTR_VAL(cfg->ini_entries[0]->value), cfg->names[0].ptr);
Expand Down
2 changes: 1 addition & 1 deletion signalfx-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ function get_ini_settings($requestInitHookPath)
'description' => 'Enables or disables tracing (set by the installer, do not change it)',
],
[
'name' => 'signalfx.trace.request_init_hook',
'name' => 'ddtrace.request_init_hook',
'default' => $requestInitHookPath,
'commented' => false,
'description' => 'Path to the request init hook (set by the installer, do not change it)',
Expand Down

0 comments on commit c2a86dd

Please sign in to comment.