-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double-counting requests if using vhost functionality? #32
Comments
You're right that it shouldn't be double-counting like that. We'll take a look and let you know what we find. Thanks for the report and the code sample! |
Fixed via 209247e. |
Deployed 0.11.2 to production and we're still seeing this FYI! Not urgent for us by any means, so don't feel the need to worry about this, but just wanted to let you know. |
Weird! The changes I made to the tracer should have put a stake through this. Can you put together a reduced test case for this so we can be sure we've killed the bug for good? It doesn't have to be pretty, it just has to reliably demonstrate the problem. Thanks, and sorry for closing this when it wasn't fixed. :/ |
Give 0.11.4 a shot and see if it makes a difference. It may not, but the change I made to the Connect instrumentation may affect this too. |
I'm having a related problem with mounted apps. I've got both the relative and absolute routes ignored in my config file, but the requests are still showing in my reports and the logger is spitting out {"name":"newrelic","hostname":"local.admitted.ly","pid":20481,"component":"express","level":50,"msg":"No Express route to use for naming.","time":"2013-12-12T06:17:37.844Z","v":0} for each request. |
👍 This is something I want us to get to soon, as part of a larger rewrite of router introspection to be more general. Thanks for moving this over here, @seth-admittedly! |
Hi @seth-admittedly and @aseemk, This issue is a bit stale, and it's not clear if there is still an issue in the latest version of the agent. Please give it a try. I am going to close this issue under the assumption that we have fixed the issue, but if not please feel free to reopen the issue. Thanks! |
Sorry for the delay here guys, and thanks for the work! We are going to be upgrading our node-newrelic soon and will report back! |
…3b02682b68b783662c79c [Snyk] Upgrade newrelic from 8.13.2 to 8.17.1
Hi guys,
We're running a Node.js app on Heroku and have node-newrelic capturing metrics. We've noticed that New Relic's count of requests per minute is consistently ~2x what we're seeing from Heroku's router logs (e.g. via log2viz, but also in Librato via l2met).
(I wish I could check Nodetime's count too. Unfortunately at the moment their site seems to be broken. I'll update this whenever it works again and I can check.)
It occurred to me that what could be happening is that requests might be getting double-counted, since we use Connect's/Express's vhost functionality, so all of our requests technically flow through two Express servers.
Simplified code: https://gist.github.com/aseemk/5613063
Is that a possibility? If so, it'd be great to fix.
We're still on Express 2 at the moment (and Node 0.6), but are actively looking to upgrade to Express 3 (and Node 0.10) very soon.
Thanks much!
The text was updated successfully, but these errors were encountered: