4.0.0 • Published 10 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 = falsemethodboolean include http method tag.default = falseresponseCodeboolean include http response codes.default = false