Skip to content

refactor(collector): moved resolve string config to core utility#2479

Merged
aryamohanan merged 4 commits intofix-config-precedencefrom
refactor-config-collector
Apr 10, 2026
Merged

refactor(collector): moved resolve string config to core utility#2479
aryamohanan merged 4 commits intofix-config-precedencefrom
refactor-config-collector

Conversation

@aryamohanan
Copy link
Copy Markdown
Contributor

@aryamohanan aryamohanan commented Apr 8, 2026

moved string resolve config to core utility

image

@aryamohanan aryamohanan requested a review from a team as a code owner April 8, 2026 15:23
@aryamohanan aryamohanan changed the title refactor: moved resolveconfig to utility refactor(collector: moved resolveconfig to utility Apr 8, 2026
@aryamohanan aryamohanan changed the title refactor(collector: moved resolveconfig to utility refactor(collector): moved resolveconfig to utility Apr 8, 2026
*/
function normalizeAutoProfile(userConfig, defaultConfig) {
return resolveConfig(process.env.INSTANA_AUTO_PROFILE, userConfig.autoProfile, defaultConfig.autoProfile);
return util.resolveConfig({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missed refactoring. Moved the resolve method to core util

@aryamohanan aryamohanan changed the title refactor(collector): moved resolveconfig to utility refactor(collector): moved resolve config to core utility Apr 8, 2026
@aryamohanan aryamohanan added the v6 label Apr 8, 2026
Copy link
Copy Markdown
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-approving

[key: string]: any;
};
autoProfile?: boolean | string;
autoProfile?: boolean;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autoProfile config expect true or fale and is always boolean. The type has been updated to boolean. The environment value parsing has also been handled.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBD

@aryamohanan aryamohanan changed the title refactor(collector): moved resolve config to core utility refactor(collector): moved resolve string config to core utility Apr 10, 2026
@sonarqubecloud
Copy link
Copy Markdown

@aryamohanan aryamohanan merged commit f2bdbb7 into fix-config-precedence Apr 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants