1.1.0 • Published 8 years ago
datadog-restify v1.1.0
datadog-restify
Datadog middleware for Restify. Based on (and conciously replicating) node-connect-datadog.
Usage
Add middleware immediately before your router.
app.use(require('datadog-restify')({}))
app.use(app.router)Options
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 = falsemethodboolean include http method tag.default = falseprotocolboolean include protocol tag.default = falseresponse_codeboolean include http response codes.default = false
License
View the LICENSE file.