Closed spijs closed 3 years ago
Starting with v0.95.19 prom-client is now peer dependency. Please try to add prom-client to the dependency in your package.json
Prom-client v13.1.0 was already added as a dependency in package.json. Otherwise the project wouldn't even build :). But it could of course be that this is the dependency that is causing the issue...
I've got a fix. Will create PR. Turns out the code was returning promises which is not / no longer supported.
I see, metrics() returns Promise starting from prom-client 13 ... Thanks for PR !
After running npm update and thus upgrading swagger-stats to the latest release I now get the following error when accessing /metrics. It seems to me like a dependency issue on your end, but according to Stackoverflow replacing .end with .send might already solve this issue. Reverting back to 0.95.18 did not solve the issue.
Running /metrics results in a timeout which breaks prometheus/grafana integrations.