Skip to content

Commit

Permalink
[fix] [broker] Add consumer name for subscription stats (apache#23671)
Browse files Browse the repository at this point in the history
(cherry picked from commit 59d4588)
(cherry picked from commit 8168df1)
  • Loading branch information
hangc0276 authored and srinath-ctds committed Dec 10, 2024
1 parent 2107bde commit 7401419
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ public ConsumerStatsImpl getStats() {
stats.unackedMessages = unackedMessages;
stats.blockedConsumerOnUnackedMsgs = blockedConsumerOnUnackedMsgs;
stats.avgMessagesPerEntry = getAvgMessagesPerEntry();
stats.consumerName = consumerName;
if (readPositionWhenJoining != null) {
stats.readPositionWhenJoining = readPositionWhenJoining.toString();
}
Expand Down

0 comments on commit 7401419

Please sign in to comment.