-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[pkg/stanza] Clarify how "nested" attributes produced by operators should be handled #33029
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I think the attributes should definitely be flat, but there is an open question as to whether we should change the stanza's field syntax. Currently, I am in favor of making the change but would like to hear from others. If we move forward with it, I think we should have a reasonably long deprecation process with clear warnings. |
If I understand correctly, the current state does not prevent users from doing what they want, right? They can use the notation |
Correct, there's no limitation, just inconsistency between the meaning of |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
pkg/stanza
Describe the issue you're reporting
As discussed at #32594 (comment), it's not super clear if attributes produced by stanza operators should be nested of flat.
A configuration like the following:
gives:
If we want to have a flat field instead of a nested one we should use
field: attributes["key2.key_in"]
.This can be confusing for users (and even component developers) so this issue is to file this "inconsistency" and explore possible solutions.
2 first ideas that come to mind:
A) make the
field: attributes.key2.key_in
to produce flat attributes as wellB) in case we want to keep both, or we cannot change the behavior we should document the difference so that users know what to expect specifically.
The text was updated successfully, but these errors were encountered: