0.1.0 • Published 5 years ago
@ianfeather/connect-datadog v0.1.0
node-connect-datadog
Datadog middleware for Connect JS / Express
This is forked from https://github.com/AppPress/node-connect-datadog and updated to allow passing metrics on 404s.
Usage
Add middleware immediately before your router.
app.use(require("connect-datadog")({}));
app.use(app.router);
Options
All options are optional.
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 = 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
License
View the LICENSE file.
0.1.0
5 years ago