-
Notifications
You must be signed in to change notification settings - Fork 57
No metrics sent when just using middlewares #10
Comments
Any word on this one? |
FYI – we're trying to use this middleware to monitor the response times of an ember-fastboot server. |
We've worked around this issue by adding a middleware which just calls next router.all('*', (req, res, next) => next()); |
The workaround above didn't work for me.
I'm running the DataDog agent directly on the host, changed bind_host to 0.0.0.0 and changed non_local_traffic to "yes". I'm a bit clueless to what I'm doing wrong. |
I found out that the node-dogstatsd sets the host to "localhost" which made it not work for me. I'll open a PR with a solution for this. |
Hi guys,
A simple fix would to fallback to
what are your thoughts? This project doesn't seem to actively maintained anymore. @respectTheCode is there a chance to get this done when I submit a PR? Best |
@raoulus I would love to see this fixed, I ended up having to use the workaround from #10 (comment) A bit disappointing since this is the package Datadog recommend. I think the fallback to path is sensible, currently all my route tags are empty. |
It is also worth noting that https://github.com/brightcove/hot-shots seems to be a more updated version of node-dogstatsd |
@ljbade there are a couple of forks, which have this issue fixed. For instance, https://github.com/wiivv/node-connect-datadog The suggested workaround is a hack. The path is set |
We stopped using datadog years ago when they changed their pricing model. If someone wants to maintain the module I would be happy to transfer it. |
@respectTheCode, thanks for not only maintaining this previously, but offering to transfer it so those using it can continue getting support. If the offer still stands, we're @DataDog on GitHub and npm, and will maintain moving forward. |
npm isn't letting me transfer it for some reason. Someone will need to contact npm support to initiate the transfer. |
I've opened ticket 27882 with npm support. |
@respectTheCode, npm support has indicated that the request needs to come from you. You can reference the above ticket number for context. Thanks again. |
@respectTheCode, just wanted to touch base on this. npm support has indicated that the request needs to come from you. You can reference the above ticket number for context. Thanks again. |
@respectTheCode @jeremy-lq Do you think there's any chance you could conclude the handover? It would be great to use a maintained version of this package if possible. Appreciate your work on this though. |
@Ianfeather working on an update to this now. Will post a further update ASAP. |
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
But since there is a check whether the
req.route.path
is set (lib/index.js) nothing is sent.The text was updated successfully, but these errors were encountered: