Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timestamp when message was received by RabbitMQ

Tags:

rabbitmq

How do I get a timestamp for when a message was received by RabbitMQ? In our application, we would like to measure how long a message was in the queue:

time_in_queue=System.currentTimeMillis() - timestamp_from_msg
like image 598
hradilf Avatar asked Nov 15 '25 06:11

hradilf


1 Answers

I updated the "rabbitmq-message-timestamp" plugin. My change was merged and it is possible to use the new header "timestamp_in_ms" which contains timestamp in milliseconds.

like image 168
hradilf Avatar answered Nov 17 '25 22:11

hradilf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!