eShop icon indicating copy to clipboard operation
eShop copied to clipboard

Tracking message-id and delivertag in Rabbit EventBus implementation

Open dscaravaggi opened this issue 8 months ago • 0 comments

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

dscaravaggi avatar May 30 '24 07:05 dscaravaggi