-
Notifications
You must be signed in to change notification settings - Fork 326
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
[BUG]: 5.41.1 caused a substantial increase in number of increment counters. #5405
Comments
I'll let you all debug, but #5347 looks like it may result in the behavior we're seeing |
The same issues was observed in our application. Rolling back to 5.41.0 fixed the issue. So there must be something wrong in 5.41.1. |
Looks like this was partially fixed in 5.42.0 but still happening. We decided to rollback to 5.40.0 which seems to be the best version so far |
We rolled back to 5.39.0 and have not seen the memory issues. |
This should now be fixed in 5.43.0 |
+1 to this. We enchanted this too. All metrics with the |
That is actually very good information, it might mean that the individual data points might be stuck in memory even after flushing. I'll look into this further.
@RyanBarclay Was this with 5.43.0? This was definitely a regression from 5.41.1 but it should have been fixed in 5.43.0. Just want to make sure it's still an issue to avoid looking into it if it's now fixed. |
@RyanBarclay Do you still get the issue with 5.44.0? |
Turned out the issue was when using multiple tags, will release a fix soon. |
Hey @rochdev sorry, didn't see this reply. As we are using this in a pretty broad way the risk of bumping the version over just hanging out at 5.41.0 is not worth it at this moment. Once this seems a bit more stable, likely 1-2 weeks of no others reporting this we will likely look at bumping version. |
@RyanBarclay Fair enough. We have just released 5.45.0 which basically revamps tag handling to better support custom metrics as it was originally meant only for runtime metrics and only adapted to support custom metrics but that ended up being based on incorrect assumptions. The latest implementation now supports everything properly regardless of the source of the metrics which should not only fix the current issue but also prevent regressions moving forward. Whenever you (or anyone else) is able to test the new version, please let us know here if everything is good on your end. |
Tracer Version(s)
5.41.1
Node.js Version(s)
22.14
Bug Report
Upgrading 5.41.1 to broke a number of our metrics. We're having a hard time tracking down exactly what happened, but something in 5.41.1 definitely caused some of our counter metrics to increase by an order of magnitude.
In the chart below, we deployed a PR where the only substantive change was upgrading from 5.40.0 to 5.41.1.
We're currently downgrading the version to confirm this is the cause.
Perhaps related, our count metrics in Datadog are now type=gauge.
Reproduction Code
This is our code to increment a metric.
Error Logs
No response
Tracer Config
No response
Operating System
No response
Bundling
Unsure
The text was updated successfully, but these errors were encountered: