Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-datadog

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-datadog - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

6

lib/index.js

@@ -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`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc