[rabbitmq-discuss] General message tracing

Maxim Treskin zerthurd at gmail.com
Mon Jul 6 11:41:01 BST 2009


Is there any way to realise tracing and logging of messages, published on
We can declare exchange type "headers", bind it with match-rules
with tracing queue and publicate messages having some flags in headers.
When this flags matched with rules in binding, message passed to tracing

But this behaviour is not appropriated because we want to publicate message
specified routing in some cases and possible trace it.
So, this behaviour is best for us:
1. Create exchange "mq.exch" with type "headers"
2. ??? Bind queue "trace" and "mq.exch" with match-rule [{"x-match": "any"},
   so, if message-headers contains trace:1 flag, this message passed to
"trace" queue. ??? (or anything else?)
3. Bind main handler queue "handler" and "mq.exch" with route "mq.handler"
4. Publish message without any headers to route "mq.handler", it passed to
"handler" queue.
5. Publish message with header trace:1 to route mq.handler, it passed to
"handler" queue and "trace" queue.

How we can make it (or something with this behaviour) with RabbitMQ?

Thank you.

Maxim Treskin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090706/59683238/attachment.htm 

More information about the rabbitmq-discuss mailing list