4.0.0 • Published 9 months ago
fastify-datadog v4.0.0
fastify-datadog
🐶 Datadog plugin for fastify. Influenced by node-connect-datadog
Install
$ npm install fastify-datadogUsage
const StatsD = require('hot-shots')
fastify.register(require('fastify-datadog'), {
  dogstatsd: new StatsD()
})Options
- dogstatsdDogStatsD client.
- statstring name for the stat.- default = "node.fastify.router"
- tagsarray of tags to be added to the histogram.- default = []
- pathboolean include path tag.- default = false
- methodboolean include http method tag.- default = false
- responseCodeboolean include http response codes.- default = false