Skip to content
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

@klausbayrhammer

Description

@klausbayrhammer

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions