@@ -42,12 +42,13 @@ module.exports = function normalizeConfig(userConfig = {}) {
4242 * @returns {string }
4343 */
4444function normalizeAgentHost ( userConfig , defaultConfig ) {
45- return util . resolveStringConfig ( {
45+ const res = util . resolveStringConfig ( {
4646 envVar : 'INSTANA_AGENT_HOST' ,
4747 configValue : userConfig . agentHost ,
4848 defaultValue : defaultConfig . agentHost ,
4949 configPath : 'config.agentHost'
5050 } ) ;
51+ return res . value ;
5152}
5253
5354/**
@@ -56,12 +57,13 @@ function normalizeAgentHost(userConfig, defaultConfig) {
5657 * @returns {number }
5758 */
5859function normalizeAgentPort ( userConfig , defaultConfig ) {
59- return util . resolveNumericConfig ( {
60+ const res = util . resolveNumericConfig ( {
6061 envVar : 'INSTANA_AGENT_PORT' ,
6162 configValue : userConfig . agentPort ,
6263 defaultValue : defaultConfig . agentPort ,
6364 configPath : 'config.agentPort'
6465 } ) ;
66+ return res . value ;
6567}
6668
6769/**
@@ -70,12 +72,13 @@ function normalizeAgentPort(userConfig, defaultConfig) {
7072 * @returns {number }
7173 */
7274function normalizeAgentRequestTimeout ( userConfig , defaultConfig ) {
73- return util . resolveNumericConfig ( {
75+ const res = util . resolveNumericConfig ( {
7476 envVar : 'INSTANA_AGENT_REQUEST_TIMEOUT' ,
7577 configValue : userConfig . agentRequestTimeout ,
7678 defaultValue : defaultConfig . agentRequestTimeout ,
7779 configPath : 'config.agentRequestTimeout'
7880 } ) ;
81+ return res . value ;
7982}
8083
8184/**
@@ -84,12 +87,13 @@ function normalizeAgentRequestTimeout(userConfig, defaultConfig) {
8487 * @returns {boolean }
8588 */
8689function normalizeAutoProfile ( userConfig , defaultConfig ) {
87- return util . resolveBooleanConfig ( {
90+ const res = util . resolveBooleanConfig ( {
8891 envVar : 'INSTANA_AUTO_PROFILE' ,
8992 configValue : userConfig . autoProfile ,
9093 defaultValue : defaultConfig . autoProfile ,
9194 configPath : 'config.autoProfile'
9295 } ) ;
96+ return res . value ;
9397}
9498
9599/**
0 commit comments