Skip to content

Commit

Permalink
Merge pull request #1 from KidkArolis/dont-create-labels-for-404s
Browse files Browse the repository at this point in the history
Avoid creating labels for each 404ed url
  • Loading branch information
tcolgate authored Aug 1, 2016
2 parents 8edd070 + 735db67 commit 4cb348f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ function middleware(request, response, done) {
var path = request.path
if (typeof request.route !== 'undefined'){
path = "handler:" + request.route.path
} else {
path = "handler:missing"
}
metrics.observe(request.method, path, response.statusCode, start);
});
Expand Down

0 comments on commit 4cb348f

Please sign in to comment.