Skip to content

[pkg/ottl] Add merge_all_maps #32954

Open
@strawgate

Description

Component(s)

No response

Is your feature request related to a problem? Please describe.

Right now merge_maps requires a source map and a target map.

There does not seem to be a good way to merge an array of maps.

Describe the solution you'd like

merge_all_maps(source, target, method)

where source is an array of maps and target is a map

Method (or whatever it's called on merge_map) would decide whether it's an insert, upset, etc

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions