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
Prometheus: Exclude ResponseRaw responses from metrics (#2108)
This PR makes the `servantPrometheusMiddleware` ignore all `ResponseRaw` responses. The implementation of wai and prometheus lead to `ResponseRaw` being tracked with `statusCode` `500` irrespective if the handler was successful or not (see documentation of `wai-middleware-prometheus`'s `ignoreRawResponses` or note `[Raw Response]` in the codebase).
This would remove all metrics for these endpoints, however looking at `observeSeconds` of `wai-middleware-prometheus` suggests that the status is optional, so maybe reporting duration without status is possible.
This PR is a followup to #2081 which lead to `cannon`'s `"await-notifications"` endpoint erroneously reporting 500s metrics.
This will also affect future potential future endpoints in `spar` and `carghold` as they also use `servantPrometheusMiddleware`.
0 commit comments