I am trying to update the consumer-tag to be more informative than the randomly generated string. We have a pattern which we use that includes hostname + identifier + randomized string. This works fine in our other services (ie: NodeJS with ampqlib
) because they provide a mechanism to pass in this value.
However, for our Java services, we use spring-amqp
and it looks like there is no way to pass in a consumer-tag value. I took a look at BlockingQueueConsumer
and it is currently hard-coded to an empty string:
String consumerTag = this.channel.basicConsume(queue, this.acknowledgeMode.isAutoAck(), "", false, this.exclusive,
this.consumerArgs, this.consumer);
Is there any way to get it not to be an empty string (which will result in a randomly generated one) besides creating our own type of consumer?
Thanks!