Skip to content

Latest commit

 

History

History
executable file
·
30 lines (22 loc) · 1.04 KB

README.md

File metadata and controls

executable file
·
30 lines (22 loc) · 1.04 KB

fastify-datadog

CI npm version js-standard-style

🐶 Datadog plugin for fastify. Influenced by node-connect-datadog

Install

$ npm install fastify-datadog

Usage

const StatsD = require('hot-shots')

fastify.register(require('fastify-datadog'), {
  dogstatsd: new StatsD()
})

Options

  • dogstatsd DogStatsD client.
  • stat string name for the stat. default = "node.fastify.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
  • responseCode boolean include http response codes. default = false