-
Notifications
You must be signed in to change notification settings - Fork 42
Add support for arguments when declaring an exchange #89
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
base: main
Are you sure you want to change the base?
Conversation
CI failure is due to dependency to another pull request on logstash-mixin-rabbitmq_connection project |
CLA failed, which is probably why nobody's reviewed this yet. Please see this comment for what to do --- specifically, the email you use in the git commits must be the same email as you signed for the CLA, and I do not see the email used in your commit in our CLA database. |
@balooka Let me know if you have any questions about how to resolve the CLA issue. :) |
Hi @jordansissel , |
@balooka it appears you created these commits with your @staff.voo.be email address. Can you please sign the CLA with this one as well? After that, we should be good to go to move into the review stage. |
@acchen97 signed with additional mail. Thanks for spotting the issue and sorry for the confusion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping improve logstash! I left some comments about the new setting.
Also, this change does not add any tests, so it cannot be merged until there are tests covering it.
@@ -155,6 +155,10 @@ class RabbitMQ < LogStash::Inputs::Threadable | |||
# to declare the exchange if it does not exist. | |||
config :exchange_type, :validate => :string | |||
|
|||
# Additional arguments for exchange creation, | |||
# for example, alternate-exchange | |||
config :exchange_arguments, :validate => :array, :default => {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistency problem: You called this arguments
in the output, but exchange_arguments
here.
Also, same comments as in the output -- this is validate array but your default is a hash. Further, the docs aren't helpful enough, in my opinion.
Original pull request dates, making sure we take the comments into account based on latest version
@jordansissel @balooka Any updates to this PR? I am willing to help out with this PR if you don't have the time |
Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/