Current Behavior
In #12383 (comment) , we found that the stream plugin was loaded incorrectly in the http subsystem. This is obviously incorrect behavior.
Whether the http plugin will be loaded in the stream subsystem was not found in the PR's processing flow and needs to be verified in the fix.
Expected Behavior
Only http plugins should be loaded in the http subsystem.
Only stream plugins should be loaded in the stream subsystem.
Error Logs
No response
Steps to Reproduce
Use feat: decoupled prometheus exporter's calculation and output #12383 or wait for the merged code
Enable Prometheus plugin in stream and http
Start apisix and access the metrics API
Check the error log. You should be able to find the logs we added in PR https://github.com/apache/apisix/pull/12383/files#diff-390eaff60bfa1071dd1850bce9c7689452eaa13f07bf45a927921ecf05886d1bR237 in the error log.
Environment
APISIX version (run apisix version): master or feat: decoupled prometheus exporter's calculation and output #12383
Operating system (run uname -a): ubuntu 24.10
OpenResty / Nginx version (run openresty -V or nginx -V):
etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
APISIX Dashboard version, if relevant:
Plugin runner version, for issues related to plugin runners:
LuaRocks version, for installation issues (run luarocks --version):
Current Behavior
In #12383 (comment), we found that the stream plugin was loaded incorrectly in the http subsystem. This is obviously incorrect behavior.
Whether the http plugin will be loaded in the stream subsystem was not found in the PR's processing flow and needs to be verified in the fix.
Expected Behavior
Only http plugins should be loaded in the http subsystem.
Only stream plugins should be loaded in the stream subsystem.
Error Logs
No response
Steps to Reproduce
Environment
apisix version): master or feat: decoupled prometheus exporter's calculation and output #12383uname -a): ubuntu 24.10openresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info):luarocks --version):