This extends the format.MetadataCopy filter to make it more useful.
The version shipped with 0.5.0 supported only metadata keys as targets.
The new version will allow copying payload / metadata from and to any destination inside the message. However, the support for multiple targets has been dropped as it can be achieved by adding multiple instances of the filter.
The purpose of this pull request
This extends the format.MetadataCopy filter to make it more useful. The version shipped with 0.5.0 supported only metadata keys as targets. The new version will allow copying payload / metadata from and to any destination inside the message. However, the support for multiple targets has been dropped as it can be achieved by adding multiple instances of the filter.
Config to verify
Append the value of a key to the payload
Copy the payload to a key (replace existing data)
Checklist
make test
executed successfully