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

Commit cf06e87

Browse files
remove tag prefix
1 parent b88a288 commit cf06e87

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ var DD = require("node-dogstatsd").StatsD;
33
module.exports = function (options) {
44
var datadog = options.dogstatsd || new DD();
55
var stat = options.stat || "node.express.router";
6-
var tagPrefix = options.tagPrefix || "express";
7-
8-
if (tagPrefix.substr(-1) != ":") {
9-
tagPrefix += ":";
10-
}
116

127
return function (req, res, next) {
138
if (!req._startTime) {
@@ -24,8 +19,8 @@ module.exports = function (options) {
2419
}
2520

2621
datadog.histogram(stat, (new Date() - req._startTime), 1, [
27-
"express:route:" + req.route.path,
28-
"express:path:" + req.path
22+
"route:" + req.route.path,
23+
"path:" + req.path
2924
]);
3025
};
3126

0 commit comments

Comments
 (0)