Erlang has a powerful trace utility, similar to strace. Instead of tracing system calls, you can trace any piece of Erlang code. RabbitMQ is written in Erlang, so we can use Erlang trace to see what its doing. The extra load may flood the system, so be very careful running this in prod.
In this example we will see how Rabbit is invoking mnesia. Mnesia is the database rabbit is using.