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

Relax collision detection policy to allow collisions between deprecated namespaces and attributes (and vice-versa) #1642

Merged

Conversation

lmolkova
Copy link
Contributor

@lmolkova lmolkova commented Dec 2, 2024

Related to #1624, #1638

Preventing collisions between namespace and attribute name is a protection in case we want to support nested properties in the attributes or add any semantic meaning to namespaces. E.g. having non-deprecated attribute foo along with non-deprecated attribute foo.bar would be problematic.

It seems fine however to have deprecated foo along with non-deprecated foo.bar.

This PR relaxes the policy and unblocks PRs like #1624 and #1638 (if they are approved).

@lmolkova lmolkova requested review from a team as code owners December 2, 2024 19:14
@lmolkova lmolkova added the Skip Changelog Label to skip the changelog check label Dec 2, 2024
policies/attribute_name_collisions.rego Outdated Show resolved Hide resolved
Copy link
Contributor

@jsuereth jsuereth left a comment

Choose a reason for hiding this comment

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

Looks good, just one minor nit.

policies/attribute_name_collisions.rego Outdated Show resolved Hide resolved
…ed namespaces and attributes ro deprecated attributes and namespaces
@lmolkova lmolkova force-pushed the deprecated-namespace-collision branch from c11ae76 to 4868d6c Compare December 2, 2024 21:17
@lmolkova lmolkova merged commit 123dd93 into open-telemetry:main Dec 2, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Label to skip the changelog check
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants