private NetworkClientDelegate.UnsentRequest logResponse(final NetworkClientDelegate.UnsentRequest request) {
        return request.whenComplete((response, exception) -> {
            if (response != null) {
                metricsManager.recordRequestLatency(response.requestLatencyMs());
                Errors error =
                        Errors.forCode(((ShareGroupHeartbeatResponse) response.responseBody()).data().errorCode());
                if (error == Errors.NONE)
                    logger.debug("ShareGroupHeartbeat responded successfully: {}", response);
                else
                    logger.error("ShareGroupHeartbeat failed because of {}: {}", error, response);
            } else {
                logger.error("ShareGroupHeartbeat failed because of unexpected exception.", exception);
            }
        });
    }
Reset the poll timer, indicating that the user has called consumer.poll(). If the member
is in {@link MemberState#STALE} state due to expired poll timer, this will transition the
member to {@link MemberState#JOINING}, so that it rejoins the group.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareHeartbeatRequestManager.java