SkyeYoung commented on code in PR #12383: URL: https://github.com/apache/apisix/pull/12383#discussion_r2222784036
########## apisix/plugins/prometheus/exporter.lua: ########## @@ -110,6 +116,10 @@ end function _M.http_init(prometheus_enabled_in_stream) + if ngx.config.subsystem ~= "http" then + return Review Comment: done. ########## apisix/plugins/prometheus/exporter.lua: ########## @@ -211,6 +221,14 @@ end function _M.stream_init() + -- FIXME: + -- Now the HTTP subsystem loads the stream plugin unintentionally, which shouldn't happen. + -- It breaks the initialization logic of the plugin, + -- here it is temporarily fixed using a workaround. + if ngx.config.subsystem ~= "stream" then + return Review Comment: done. -- 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]
