diff --git a/lib/api/middlewares/profiler.js b/lib/api/middlewares/profiler.js index 2cf0736f..a3cb584f 100644 --- a/lib/api/middlewares/profiler.js +++ b/lib/api/middlewares/profiler.js @@ -10,6 +10,7 @@ module.exports = function profiler (options) { const { logger } = res.locals; const { id } = logger.bindings(); + // TODO: stop using profiler and log stats instead of adding them to the profiler req.profiler = new Profiler({ statsd_client: statsClient, profile: enabled