opentelemetry-collector/confmap/provider
Vihas Makwana 84888adb37
[confmap] - add a more targeted version of append-merging strategy (#12926)
Follow-up of
https://github.com/open-telemetry/opentelemetry-collector/pull/12097/

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
### Description

Ideally, users want to merge lists in pipelines only. In this PR, I'm
adding support for merging following components:
1. extensions
2. receivers
3. exporters

We make use of glob-like pattern to match the path because there can be
multiple pipelines configured. Inspired by @evan-bradley's
[idea](https://github.com/open-telemetry/opentelemetry-collector/pull/12097/#discussion_r1918620008).

I'm leaving `processors` out of this list because we make an ordering
guarantee.

#### _**Future plan:**_ 
Once this PR gets merged, it would make it easier for us to decide upon
the command line flags to make this option configurable over the RFC.
Right now, `patterns` is hardcoded to include above mentioned
components, but we can easily make it configurable after making some
tweaks.

<!-- Issue number if applicable -->
### Link to tracking issue
Relates
https://github.com/open-telemetry/opentelemetry-collector/issues/8754

<!--Describe what testing was performed and which tests were added.-->
### Testing

Expanded the existing test cases

<!--Describe the documentation added.-->
#### Documentation
2025-05-05 09:34:53 +00:00
..
envprovider [confmap] - add a more targeted version of append-merging strategy (#12926) 2025-05-05 09:34:53 +00:00
fileprovider [confmap] - add a more targeted version of append-merging strategy (#12926) 2025-05-05 09:34:53 +00:00
httpprovider [confmap] - add a more targeted version of append-merging strategy (#12926) 2025-05-05 09:34:53 +00:00
httpsprovider [confmap] - add a more targeted version of append-merging strategy (#12926) 2025-05-05 09:34:53 +00:00
internal [chore] replace deprecated tenv with usetesting (#12576) 2025-03-07 19:42:15 +00:00
yamlprovider [confmap] - add a more targeted version of append-merging strategy (#12926) 2025-05-05 09:34:53 +00:00