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.1 to 0.0.2

14

lib/index.js

@@ -22,6 +22,16 @@ var DD = require("node-dogstatsd").StatsD;

datadog.histogram(stat, (new Date() - req._startTime), 1, [
var statTags = [
"route:" + req.route.path,
"path:" + req.path
].concat(tags));
].concat(tags);
if (options.method) {
statTags.push("method:" + req.method.toLowerCase());
}
if (options.protocol && req.protocol) {
statTags.push("protocol:" + req.protocol);
}
datadog.histogram(stat, (new Date() - req._startTime), 1, statTags);
};

@@ -28,0 +38,0 @@

2

package.json
{
"name": "connect-datadog",
"version": "0.0.1",
"version": "0.0.2",
"description": "Datadog middleware for Connect JS / Express",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,2 +20,4 @@ # node-connect-datadog

* `tags` *array* of tags to be added to the histogram. `default = []`
* `method` *boolean* include http method tag. `default = false`
* `protocol` *boolean* include protocol tag. `default = false`

@@ -22,0 +24,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