Skip to content

refactor(config): align disable normalizer with resolver return shape#2502

Merged
aryamohanan merged 3 commits intofix-config-precedencefrom
refactor-config-disable
Apr 20, 2026
Merged

refactor(config): align disable normalizer with resolver return shape#2502
aryamohanan merged 3 commits intofix-config-precedencefrom
refactor-config-disable

Conversation

@aryamohanan
Copy link
Copy Markdown
Contributor

@aryamohanan aryamohanan commented Apr 20, 2026

The disable normalization is currently not returning the source info

see: #2492 (comment)

@aryamohanan aryamohanan requested a review from a team as a code owner April 20, 2026 11:22
@aryamohanan aryamohanan changed the title refactor(config): corrected the disabling normalizer to return proper response refactor(config): align disable normalizer with resolver return shape Apr 20, 2026
@sonarqubecloud
Copy link
Copy Markdown


if (envDisableConfig === false) {
return {};
return { value: {}, source: CONFIG_SOURCES.ENV };
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this right?

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 is the case when INSTANA_TRACING_DISABLE=false.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤔 Why is the value {}

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.

we treat disable as object type internaly

Copy link
Copy Markdown
Contributor Author

@aryamohanan aryamohanan Apr 20, 2026

Choose a reason for hiding this comment

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

the external config type mixed with boolean and array obj, but internally we treat it as object.
INSTANA_TRACING_DISABLE can accept both boolean and obj array

@aryamohanan aryamohanan merged commit b5fc15e into fix-config-precedence Apr 20, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants