Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpwilliams/datadog-restify
Datadog middleware for Restify.
https://github.com/jpwilliams/datadog-restify
api code datadog middleware node response restify status time
Last synced: 22 days ago
JSON representation
Datadog middleware for Restify.
- Host: GitHub
- URL: https://github.com/jpwilliams/datadog-restify
- Owner: jpwilliams
- License: mit
- Created: 2017-08-11T11:11:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T09:45:09.000Z (over 6 years ago)
- Last Synced: 2024-10-04T23:33:26.606Z (about 1 month ago)
- Topics: api, code, datadog, middleware, node, response, restify, status, time
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datadog-restify
Datadog middleware for Restify. Based on (and conciously replicating) [node-connect-datadog](github.com/AppPress/node-connect-datadog).
## Usage
Add middleware immediately before your router.
``` js
app.use(require('datadog-restify')({}))
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](https://github.com/jpwilliams/datadog-restify/blob/master/README.md) file.