connect-datadog
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -8,2 +8,3 @@ var DD = require("node-dogstatsd").StatsD; | ||
var path = options.path || false; | ||
var base_url = options.base_url || false; | ||
var response_code = options.response_code || false; | ||
@@ -25,4 +26,5 @@ | ||
var baseUrl = (base_url !== false) ? req.baseUrl : ''; | ||
var statTags = [ | ||
"route:" + req.route.path | ||
"route:" + baseUrl + req.route.path | ||
].concat(tags); | ||
@@ -39,3 +41,3 @@ | ||
if (path !== false) { | ||
statTags.push("path:" + req.path); | ||
statTags.push("path:" + baseUrl + req.path); | ||
} | ||
@@ -42,0 +44,0 @@ |
{ | ||
"name": "connect-datadog", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Datadog middleware for Connect JS / Express", | ||
@@ -18,4 +18,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"node-dogstatsd": "0.0.5" | ||
"node-dogstatsd": "0.0.6" | ||
} | ||
} |
@@ -17,6 +17,6 @@ # node-connect-datadog | ||
* `dogstatsd` node-dogstatsd client. `default = new require("node-dogstatsd").StatsD()` | ||
* `dogstatsd` node-dogstatsd client. `default = new (require("node-dogstatsd")).StatsD()` | ||
* `stat` *string* name for the stat. `default = "node.express.router"` | ||
* `tags` *array* of tags to be added to the histogram. `default = []` | ||
* `path` *boolean* include path tag. `default = true` | ||
* `path` *boolean* include path tag. `default = false` | ||
* `method` *boolean* include http method tag. `default = false` | ||
@@ -23,0 +23,0 @@ * `protocol` *boolean* include protocol tag. `default = false` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3751
43
0
+ Addednode-dogstatsd@0.0.6(transitive)
- Removednode-dogstatsd@0.0.5(transitive)
Updatednode-dogstatsd@0.0.6