Skip to content

Commit 289361f

Browse files
committed
Instrument the consumer loop
1 parent d837e26 commit 289361f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/kafka/consumer.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ def consumer_loop
371371

372372
while @running
373373
begin
374-
yield
374+
@instrumenter.instrument("loop.consumer") do
375+
yield
376+
end
375377
rescue HeartbeatError, OffsetCommitError
376378
join_group
377379
rescue RebalanceInProgress

0 commit comments

Comments
 (0)