connect-datadog
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -23,4 +23,3 @@ var DD = require("node-dogstatsd").StatsD; | ||
var statTags = [ | ||
"route:" + req.route.path, | ||
"path:" + req.path | ||
"route:" + req.route.path | ||
].concat(tags); | ||
@@ -36,2 +35,6 @@ | ||
if (options.path !== false) { | ||
statTags.push("path:" + req.path); | ||
} | ||
datadog.histogram(stat, (new Date() - req._startTime), 1, statTags); | ||
@@ -38,0 +41,0 @@ }; |
{ | ||
"name": "connect-datadog", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Datadog middleware for Connect JS / Express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,6 +20,6 @@ # node-connect-datadog | ||
* `tags` *array* of tags to be added to the histogram. `default = []` | ||
* `path` *boolean* include path tag. `default = true` | ||
* `method` *boolean* include http method tag. `default = false` | ||
* `protocol` *boolean* include protocol tag. `default = false` | ||
## License | ||
@@ -26,0 +26,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3223
34