open-telemetry/opentelemetry-collector

Clearer docs on config merging

Opened this issue · 0 comments

The docs (https://opentelemetry.io/docs/collector/configuration/) mention:

You can provide one or more configurations using the --config option

but don't expand on how the multiple configurations will be merged, e.g. how are duplicate maps in a key handled, are existing values stomped or are new values ignored?

Glancing at the code:

Maybe it would be sufficient to link to https://pkg.go.dev/github.com/knadh/koanf/v2#readme-merge-behavior