Skip to content

[service/telemetry] Fix Prometheus config defaults mismatch when host is explicitly set#15027

Draft
Krishnachaitanyakc wants to merge 1 commit intoopen-telemetry:mainfrom
Krishnachaitanyakc:fix/issue-13867
Draft

[service/telemetry] Fix Prometheus config defaults mismatch when host is explicitly set#15027
Krishnachaitanyakc wants to merge 1 commit intoopen-telemetry:mainfrom
Krishnachaitanyakc:fix/issue-13867

Conversation

@Krishnachaitanyakc
Copy link
Copy Markdown

Description

When a user explicitly configures the Prometheus endpoint in internal telemetry (e.g., to change the host), the without_type_suffix, without_units, and without_scope_info fields default to nil, which the Prometheus exporter treats as false. This diverges from the implicit defaults where all three are true.

This PR fixes MetricsConfigV030.Unmarshal to apply default values of true for those three fields when they are not explicitly set, ensuring the behavior is consistent whether or not the user explicitly configures the Prometheus exporter section.

Resolves #13867

… mismatch

When explicitly configuring the Prometheus endpoint for internal telemetry,
the defaults for without_type_suffix, without_units, and without_scope_info
now correctly remain true, matching the behavior of implicit defaults.

Resolves open-telemetry#13867

Assisted-by: Claude Sonnet 4.6
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.

configuration of explicitly declared interal-telemetry does not match default values of implicit/not declared configuration

1 participant