Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support headers in publish-properties #2538

Open
giscardff opened this issue Jul 3, 2016 · 0 comments
Open

Support headers in publish-properties #2538

giscardff opened this issue Jul 3, 2016 · 0 comments

Comments

@giscardff
Copy link

Hey folks,

The shovel plugin allows to change some AMQP Basic Properties value, as listed on this link.

However, sometimes, it might be necessary to change properties not defined on AMQP Specification. For example, in my case I receive messages from dozen of onpremise customers, and I've created a header "tenant" to identify them and want to make sure the Shovel will always overwrite such value is important so customerA doesn't send a menssage using customerB tenant value.

I believe that implement such a feature would be simple for your guys, basically it requires support to change the property "header" of AMQP by sending a map of values.

In order to change the user_id property we have:
publish-properties: {"user_id":"myid"}

In order to change the header properties we would have:
publish-properties: {"headers": {"tenant":"mytenant", "myinteger":10, "myboolean":false}}

Shovel just set the headers as defines (LongString, Integer or Boolean) and if the customer property doesn't match the type, let's say someone has set "tenant" to an integer value; Shovel would simply log and discard the message.

Looking forward for hearing some news 😄

@michaelklishin michaelklishin changed the title Allows to Change a Custom header Support headers in publish-properties Jul 3, 2016
@dcorbacho dcorbacho transferred this issue from rabbitmq/rabbitmq-shovel Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants