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

connect-datadog

Package Overview
Dependencies
Maintainers
1
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.2 to 0.0.3

7

lib/index.js

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

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