Datadog middleware for Connect JS / Express with support for GraphQL operations.
Add middleware immediately before your router.
app.use(require("connect-datadog-graphql")({}));
app.use(app.router);All options are optional.
- dogstatsdhot-shots client.- default = new require("hot-shots").StatsD()
- statstring name for the stat.- default = "node.express.router"
- tagsarray of tags to be added to the histogram.- default = []
- pathboolean include path tag.- default = false
- base_urlboolean include baseUrl.- default = false
- methodboolean include http method tag.- default = false
- protocolboolean include protocol tag.- default = false
- response_codeboolean include http response codes.- default = false
- delimstring char to replace pipe char with in the route- default = '-'
- graphql_pathsarray of path strings where we should check for graphql requests
- extra_attributesarray arbitrary extra tags to include
View the LICENSE file.