Skip to content

fix: apply global otlp config to tenant config only when it is updated in the overrides - #19213

Merged
sandeepsukhani merged 2 commits into
mainfrom
fix-otlp-config-duplication
Sep 17, 2025
Merged

fix: apply global otlp config to tenant config only when it is updated in the overrides#19213
sandeepsukhani merged 2 commits into
mainfrom
fix-otlp-config-duplication

Conversation

@sandeepsukhani

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
When default_resource_attributes_as_index_labels is set, we add the list of attributes to promote as labels to the default and per-tenant otlp_config in the limits. However, while loading per-tenant overrides, we inherit the default limits configuration and apply the overrides on top of it to apply only the changes from the overrides. It causes us to copy the default_resource_attributes_as_index_labels twice for the tenants who have an override but do not have any changes to the otlp_config.

This PR fixes the issue by applying the global otlp config only to the tenants with an update in their otlp_config.
The otlp_config would be inherited from the default config without any change for others.

Checklist

  • Tests updated
@sandeepsukhani
sandeepsukhani requested a review from a team as a code owner September 17, 2025 10:40

@shantanualsi shantanualsi left a comment

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.

lgtm

@trevorwhitney trevorwhitney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks Sandeep!

@sandeepsukhani
sandeepsukhani merged commit 8057c5c into main Sep 17, 2025
69 checks passed
@sandeepsukhani
sandeepsukhani deleted the fix-otlp-config-duplication branch September 17, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants