Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit baa508c

Browse files
Karl KirchRudy
authored andcommitted
Make options.path default to false
1 parent a8ab2ce commit baa508c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = function (options) {
44
var datadog = options.dogstatsd || new DD();
55
var stat = options.stat || "node.express.router";
66
var tags = options.tags || [];
7+
var options.path = options.path || false;
78
var response_code = options.response_code || false;
89

910
return function (req, res, next) {
@@ -28,7 +29,6 @@ module.exports = function (options) {
2829
statTags.push("method:" + req.method.toLowerCase());
2930
}
3031

31-
3232
if (options.protocol && req.protocol) {
3333
statTags.push("protocol:" + req.protocol);
3434
}

0 commit comments

Comments
 (0)