nginx-lua-prometheus
nginx-lua-prometheus copied to clipboard
Show an error if unsupported version of nginx or ngx_lua is used
Following #97, we could improve error handling:
- determine minimal versions of
nginxandngx_luathat are required for this library - check ngx.config.nginx_version and ngx.config.ngx_lua_version and display an error during
initif any of those is too low
Bonus points for adding another Docker-based test to ensure that the library can still run on the documented minimal version when changes are made.
~I use openresty/1.27.1.2 and ngx_lua-0.10.28 and still get global errors. Of course I enabled code cache.
Am I missing anything?~
TIL: init_worker_by_lua* doesn't log into error.log file... There was issue with package path, not the module itself.