Browse Source

Custom trace request metric

trace
Luke Childs 8 years ago
parent
commit
65183539dc
  1. 1
      index.js

1
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();
});

Loading…
Cancel
Save