connect-datadog 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @mergermarket/connect-datadog@1.0.0
Install via package.json:
"@mergermarket/connect-datadog": "1.0.0"
About this version
Datadog middleware for Connect JS / Express
Add middleware immediately before your router.
app.use(require("@mergermarket/connect-datadog")({}));
app.use(app.router);
All options are optional.
-
dogstatsd
node-dogstatsd client.default = new (require("hot-shot")).StatsD()
-
stat
string name for the stat.default = "node.express.router"
-
tags
either:- array of tags to be added to the histogram
-
function that takes
req
andres
, returning an array of tags default = []
-
route_tag
: function(req, res) => string
- generatesroute
tag value if set -
path
boolean include path tag.default = false
-
method
boolean include http method tag.default = false
-
protocol
boolean include protocol tag.default = false
-
response_code
boolean include http response codes.default = false
-
response_code_grouped
boolean include http response codes grouped by 100, e.g. 5xx.default = false
-
response_code_tag
boolean include http response codes as tags.default = false
View the LICENSE file.
Details
- connect-datadog
- mergermarket
- 3 months ago
- MIT
- 1 dependencies
Assets
- connect-datadog-1.0.0.tgz
Download activity
- Total downloads 2,021
- Last 30 days 651
- Last week 141
- Today 33