Skip to content

jackjacek/datadog-restify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  • 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.

About

Datadog middleware for Restify.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%