-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Preserve processor order in testbed Yaml config creator #33003
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
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Good point, it should be ordered 👍 Thanks for calling this out! |
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. |
Hi @crobert-1 Any suggestions on the solution? |
Since a map is inherently unordered, I'd start with trying to understand if a map in this case is absolutely required. If not, we should try to move to using an ordered type, like an array. I'm not very familiar with the internal logic of the testbed, so that's as much information as I have at this point. A PR is welcome! |
Yeah...if we are open to changing the datatype, we can go with a 2D string array. |
…er (#35064) **Description:** <Describe what has changed.> Previously, the processor config was passed as a map, because of which preserving the processor was not possible. Changed the data type to a newly added struct slice so that the processors are used in the supplied order. **NOTE** that this change is breaking - if any of these changed functions are directly used, they will break as existing usages supply map. **Link to tracking Issue:** <Issue number if applicable> Resolves #33003
…er (open-telemetry#35064) **Description:** <Describe what has changed.> Previously, the processor config was passed as a map, because of which preserving the processor was not possible. Changed the data type to a newly added struct slice so that the processors are used in the supplied order. **NOTE** that this change is breaking - if any of these changed functions are directly used, they will break as existing usages supply map. **Link to tracking Issue:** <Issue number if applicable> Resolves open-telemetry#33003
…er (open-telemetry#35064) **Description:** <Describe what has changed.> Previously, the processor config was passed as a map, because of which preserving the processor was not possible. Changed the data type to a newly added struct slice so that the processors are used in the supplied order. **NOTE** that this change is breaking - if any of these changed functions are directly used, they will break as existing usages supply map. **Link to tracking Issue:** <Issue number if applicable> Resolves open-telemetry#33003
Uh oh!
There was an error while loading. Please reload this page.
Component(s)
testbed
Is your feature request related to a problem? Please describe.
In testbed scenarios.go, there is a function createConfigYaml(...) (ref) to get yaml config from given parameters.
As it takes the processor argument as a map, the processor order is not maintained.
This way, it's not possible to test scenarios where the processor order is important.
Describe the solution you'd like
Would be better if the function takes processors argument as an ordered data structure(say list).
or
The function may also take an additional argument with the list of processors (in the required order)
Describe alternatives you've considered
An alternate solution would be to get the config generated and then update the processors list to the required order
Additional context
No response
The text was updated successfully, but these errors were encountered: