This repository was archived by the owner on Dec 10, 2018. It is now read-only.
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
No metrics sent when just using middlewares #10
Open
Description
We observed that connect-datadog does not send any metrics when it is added to an express middleware-stack where there is no router to match routes.
For this sample webapp I would expect connect-datadog to send metrics everytime a static resource is requested
const express = require('express');
var app = express();
app.use(require("connect-datadog")({}));
app.use(express.static('.'));
app.listen(3000);
But since there is a check whether the req.route.path
is set (lib/index.js) nothing is sent.
Metadata
Metadata
Assignees
Labels
No labels