I want to know how many records returned from poll in KStream(Kafka streams) before processing forEach method in Kafka Consumer.
Have to create metrics based on how many records returned from poll and can verify how many processed in forEach method.
Can you please have any suggestions for this