@tesglobal/connect-datadog

0.1.0 • 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
  • method boolean include http method tag. default = false
  • protocol boolean include protocol tag. default = false
  • response_code boolean include http response codes. default = false

Published fork

Tes Global has published this fork for use via npm, as the original repo has not merged PRs or published a new version for some time.

License

View the LICENSE file.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i @tesglobal/connect-datadog

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.21 kB

Total Files

6

Last publish

Collaborators

  • tesglobaladmin
  • unicorn-slayer