Repository navigation
feat: review confmaps - #2725
thompson-tomo wants to merge 5 commits into
Conversation
yuminn-k
left a comment
There was a problem hiding this comment.
Thanks, making these reusable makes sense. One thing I noticed: this is more than a move. On main, decoupleafterbatchconverter is not in the ConverterFactories list. It was dropped in #1340 (May 2024) and hasn't been active since, even though the README still describes the auto-configuration. This PR wires it back in, so anyone with batch in a pipeline and no decouple after it gets a different effective config after this lands. Was that intended?
If so, I think the converter needs a couple of fixes before it is turned on again. I checked both locally:
- It appends "decouple" to the pipeline's processors but doesn't add a processors::decouple entry. With a config that has batch in the traces and metrics pipelines and no decouple defined, Validate on this branch returns
service::pipelines::metrics: references processor "decouple" which is not configured, while main passes. So those configs would fail to start. - The
breakafter the first match means only one pipeline gets decouple, and which one depends on map iteration order. With traces and metrics both using batch, 5 runs of the converter gave traces 3 times and metrics 2 times. The README says all pipelines.
Would it be easier to keep this PR as a pure move and re-enable the converter in a separate PR with those fixes and a changelog entry?
Also, for the ocb goal: the builder's main.go template calls NewFactory() on each converter package, but these only export New(). Maybe worth adding NewFactory() here or in a follow-up.
Nit: disablequeuedretryconverter/converter.go still has the old internal/ path in its import comment.
Yes it was intentional as i couldn't find documentation for its removal. If it is not needed, we should remove the confmap.
Lets make changes in follow up. |
|
@yuminn-k have clarified with maintainers the unused confmap will be removed rather than adding it back in to the release. |
This makes the reusable confmap public which enables them to be reused in custom builds using ocb.
The hope is that we can progress towards ocb to simplify our processes & reduce maintenance etc.
Note the unused decoupleafterbatch confmap has been deleted due to it not being used for 2 years & the pending deprecation of the batch processor.