This library is deprecated and has been replaced with Datadog APM which generates the same metrics but also has many other features and integrations. We highly recommend upgrading to APM as this library will receive no further updates.
Datadog middleware for Connect JS / Express
Add middleware immediately before your router.
app.use(require("connect-datadog")({}));
app.use(app.router);
All options are optional.
dogstatsdnode-dogstatsd client.default = new require("node-dogstatsd").StatsD()statstring name for the stat.default = "node.express.router"tagsarray of tags to be added to the histogram.default = []pathboolean include path tag.default = falsebase_urlboolean include baseUrl.default = falsemethodboolean include http method tag.default = falseprotocolboolean include protocol tag.default = falseresponse_codeboolean include http response codes.default = falsedelimstring char to replace pipe char with in the routedefault = '-'
View the LICENSE file.