eShop
eShop copied to clipboard
Tracking message-id and delivertag in Rabbit EventBus implementation
Hi All, I know that EventBUS is an abstraction, and currently 2 implementations are supported Azure,RabbitMQ
regarding rabbitmq class RabbitMQEventBus.cs
there are a couple of property that are very usefull to be tracked by the logger.logtrace
- delivery tag (internal number generated by rabbit client)
var deliveryTag = channel.NextPublishSeqNo;
- properties.messageId (that could be set just to event.Id)
Registering these 2 properties in logtrace allows you to diagnose some annoying network error in /var/log/rabbitmq
Ciao Diego