From the course: Learning RabbitMQ

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Tracing message contents for troubleshooting

Tracing message contents for troubleshooting - RabbitMQ Tutorial

From the course: Learning RabbitMQ

Start my 1-month free trial

Tracing message contents for troubleshooting

- [Instructor] Sometimes it's useful to see what messages are being sent and handled in your RabbitMQ instances. This is where tracing comes in. You should only use tracing in RabbitMQ during development or when debugging because it impacts performance. When tracing is enabled, RabbitMQ will add extra messages in special format to the amq.rabbitmq.trace exchange. You combine the queue to this exchange and have an application consume this queue. There's also a useful plugin that provides a user interface. To install this plugin, start a RabbitMQ CLI. You'll find it in your start menu in the RabbitMQ folder. It's called RabbitMQ Command Prompt. In this command prompt, you can run the rabbitmq-plugins enable rabbitmq_tracing command. This enables the plugin. Now, all you need to do is enable the actual tracing. This is done by running rabbitmqctl trace_on. You will have to restart RabbitMQ for these changes to take effect.…

Contents