fastify-datadog
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

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

/fastify-datadog/

    Package Sidebar

    Install

    npm i fastify-datadog

    Weekly Downloads

    45

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    9.04 kB

    Total Files

    9

    Last publish

    Collaborators

    • herrmannplatz