Skip to content

Commit

Permalink
Instrument Express requests with express-middleware-server-timing
Browse files Browse the repository at this point in the history
  • Loading branch information
cvazac authored and nicjansma committed Apr 4, 2018
1 parent 6173215 commit 42d6782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"eslint": "^3.17.0",
"eslint-plugin-html": "^1.5.1",
"express": "^4.11.1",
"express-middleware-server-timing": "^1.0.2",
"fs-extra": "^0.15.0",
"grunt": "^0.4.5",
"grunt-babel": "^5.0.3",
Expand Down
2 changes: 2 additions & 0 deletions tests/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ app.get("/*", function(req, res, next) {
// all static content follows afterwards
/*eslint dot-notation:0*/
app.use(express.static(wwwRoot));

require("express-middleware-server-timing")(app);

0 comments on commit 42d6782

Please sign in to comment.