ronething commented on code in PR #8693:
URL: https://github.com/apache/apisix/pull/8693#discussion_r1071822138
##########
apisix/plugins/error-log-logger.lua:
##########
@@ -272,6 +330,55 @@ local function send_to_clickhouse(log_message)
end
+local function create_producer(broker_list, broker_config, cluster_name)
+ core.log.info("create new kafka producer instance")
+ return producer:new(broker_list, broker_config, cluster_name)
+end
+
+
+local function send_to_kafka(log_message)
+ core.log.info("sending a batch logs to kafka brokers: ",
core.json.encode(config.kafka.brokers))
+
+ local broker_config = {}
+ broker_config["request_timeout"] = config.timeout * 1000
Review Comment:
it come from
https://github.com/apache/apisix/blob/d85295303c2b07253ec4811fcf3071a8fa913ca6/apisix/plugins/error-log-logger.lua#L72
https://github.com/apache/apisix/blob/d85295303c2b07253ec4811fcf3071a8fa913ca6/apisix/plugins/error-log-logger.lua#L110
and set by
https://github.com/apache/apisix/blob/d85295303c2b07253ec4811fcf3071a8fa913ca6/apisix/plugins/error-log-logger.lua#L305
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]