You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If enabledMetrics.http is set to false some metrics (requestDuration, requestSize, responseSize) are still trying to be collected in middleware and it throws an error.
To Reproduce
Steps to reproduce the behavior:
Create strapi app
Go to app/config/plugins.js
Set enabledMetrics.http to false
Start the app with console npm run strapi console
Check random endpoint in the browser (e.g. http://localhost:1337/admin)
You will get TypeError: requestEnd is not a function in node_modules/strapi-prometheus/server/middlewares/index.js:26:9
Expected behavior
It should not throw an error and not collect any metrics.
The text was updated successfully, but these errors were encountered:
Describe the bug
If
enabledMetrics.http
is set tofalse
some metrics (requestDuration
,requestSize
,responseSize
) are still trying to be collected in middleware and it throws an error.To Reproduce
Steps to reproduce the behavior:
app/config/plugins.js
enabledMetrics.http
tofalse
npm run strapi console
http://localhost:1337/admin
)TypeError: requestEnd is not a function
innode_modules/strapi-prometheus/server/middlewares/index.js:26:9
Expected behavior
It should not throw an error and not collect any metrics.
The text was updated successfully, but these errors were encountered: