From 65183539dcd69ab9156e453130aac8a7cfc76cf9 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 11 Jan 2017 19:32:45 +0700 Subject: [PATCH] Custom trace request metric --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 53a2c08..af7c9ab 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,7 @@ const port = process.env.port || 3000; // Report headers to trace app.use((req, res, next) => { trace.report('headers', req.headers); + trace.incrementMetric('request'); next(); });