Skip to content

feat: review confmaps - #2725

Open
thompson-tomo wants to merge 5 commits into
open-telemetry:mainfrom
thompson-tomo:public-confmap
Open

thompson-tomo wants to merge 5 commits into
open-telemetry:mainfrom
thompson-tomo:public-confmap

Conversation

@thompson-tomo

@thompson-tomo thompson-tomo commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the go Pull requests that update Go code label Nov 5, 2026
@thompson-tomo thompson-tomo changed the title make confmap public feat: make confmap public Nov 5, 2026
@thompson-tomo
thompson-tomo marked this pull request as ready for review November 5, 2026 15:03
@thompson-tomo
thompson-tomo requested a review from a team as a code owner November 5, 2026 15:03

@yuminn-k yuminn-k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 break after 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.

@thompson-tomo

Copy link
Copy Markdown
Contributor Author

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?

Yes it was intentional as i couldn't find documentation for its removal. If it is not needed, we should remove the confmap.

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.

Lets make changes in follow up.

@thompson-tomo thompson-tomo changed the title feat: make confmap public feat: review confmaps Nov 10, 2026
@thompson-tomo

Copy link
Copy Markdown
Contributor Author

@yuminn-k have clarified with maintainers the unused confmap will be removed rather than adding it back in to the release.

@thompson-tomo thompson-tomo moved this from Todo to Need more Approval in Lambda Triage Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

Status: Need more Approval

Development

Successfully merging this pull request may close these issues.

2 participants