This commit is contained in:
Daniel García Aubert 2020-06-04 12:10:15 +02:00
parent 7b53b7c30a
commit 6945cfc93c

View File

@ -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