Hello<br><br>Is there any way to realise tracing and logging of messages, published on bus?<br>We can declare exchange type "headers", bind it with match-rules<br>with tracing queue and publicate messages having some flags in headers.<br>
When this flags matched with rules in binding, message passed to tracing queue.<br><br>But this behaviour is not appropriated because we want to publicate message to<br>specified routing in some cases and possible trace it.<br>
So, this behaviour is best for us:<br>1. Create exchange "mq.exch" with type "headers"<br>2. ??? Bind queue "trace" and "mq.exch" with match-rule [{"x-match": "any"}, {"trace":1}],<br>
so, if message-headers contains trace:1 flag, this message passed to "trace" queue. ??? (or anything else?)<br>3. Bind main handler queue "handler" and "mq.exch" with route "mq.handler"<br>
4. Publish message without any headers to route "mq.handler", it passed to "handler" queue.<br>5. Publish message with header trace:1 to route mq.handler, it passed to "handler" queue and "trace" queue.<br clear="all">
<br>How we can make it (or something with this behaviour) with RabbitMQ?<br><br>Thank you.<br><br>-- <br>Maxim Treskin<br>