Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customers to set custom resource attributes as container Tags #32224

Conversation

dineshg13
Copy link
Member

@dineshg13 dineshg13 commented Apr 8, 2024

Currently users of DDconnector can only set fixed set of resource attributes as container Tags , list is defined here . This PR enables the customers to choose any resource attribute to be set as container Tag on the APM Trace metrics payload.

@dineshg13 dineshg13 marked this pull request as ready for review April 8, 2024 18:15
@dineshg13 dineshg13 requested a review from a team April 8, 2024 18:15
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

LGTM except minor nits

assert.Equal(t, 2, len(tags))
assert.ElementsMatch(t, []string{"region:my-region", "zone:my-zone"}, tags)
assert.Equal(t, 3, len(tags))
assert.ElementsMatch(t, []string{"region:my-region", "zone:my-zone", "az:my-az"}, tags)
Copy link

Choose a reason for hiding this comment

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

👍

@dineshg13 dineshg13 requested a review from dmitryax as a code owner April 9, 2024 18:57
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added cmd/configschema configschema command cmd/otelcontribcol otelcontribcol command exporter/datadog Datadog components labels Apr 9, 2024
@mx-psi mx-psi merged commit 867d670 into open-telemetry:main Apr 10, 2024
170 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/configschema configschema command cmd/otelcontribcol otelcontribcol command connector/datadog exporter/datadog Datadog components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants