Skip to content

[ConfMap] - Providing custom merge method for koanf's Map.Merge #10370

Open
@jagan2221

Description

@jagan2221

Is your feature request related to a problem? Please describe.
go.opentelemetry.io/collector/confmap exposes Merge method currently. I am writing a custom provider which uses confMap, I am trying to implement custom merge logic instead of default merging in underlying koanf map. Seems this is possible in koanf's library, by providing custom merge logic to koanf.Merge method, But confmap exposes normal merge currently and not custom merge functionality.

Ref-> https://github.com/knadh/koanf/blob/ef5fbbc9b413b38887e95d5600a330da5a842aa3/koanf.go#L405

Describe the solution you'd like
Expose an additional Merge method in confMap which takes in custom merge function as argument and pass it to koanf's merge.
confMap.Merge(in *Conf, opts *options)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions