Skip to content

Commit ee1f211

Browse files
Merge pull request #1701 from rabbitmq/get-empty-stats
Add basic.get_empty stats as a new counter
2 parents 981edb9 + 4b58515 commit ee1f211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rabbit_channel.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ handle_method(#'basic.get'{queue = QueueNameBin, no_ack = NoAck},
11721172
State1 = monitor_delivering_queue(NoAck, QPid, QName, State),
11731173
{noreply, record_sent(none, not(NoAck), Msg, State1)};
11741174
empty ->
1175+
?INCR_STATS(queue_stats, QueueName, 1, get_empty, State),
11751176
{reply, #'basic.get_empty'{}, State}
11761177
end;
11771178

0 commit comments

Comments
 (0)