shreemaan-abhishek commented on code in PR #11103:
URL: https://github.com/apache/apisix/pull/11103#discussion_r1547307239
##########
apisix/utils/batch-processor.lua:
##########
@@ -184,8 +185,9 @@ function batch_processor:push(entry)
return
end
- if prometheus and prometheus.get_prometheus() and not batch_metrics and
self.name
- and self.route_id and self.server_addr then
+ if not plugin.check_disable_with_metatable(plugin.get("prometheus"))
Review Comment:
your PR doesn't make sense, the existing logic is just as same as yours.
--
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]