connect-datadog
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/connect-datadog package

0.0.9 • Public • Published

node-connect-datadog

Datadog middleware for Connect JS / Express

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
  • base_url boolean include baseUrl. 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
  • delim string char to replace pipe char with in the route default = '-'

License

View the LICENSE file.

Readme

Keywords

Package Sidebar

Install

npm i connect-datadog

Weekly Downloads

43,668

Version

0.0.9

License

MIT

Unpacked Size

22.2 kB

Total Files

7

Last publish

Collaborators

  • datadog