-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Refactor the current way metrics are defined #572
Comments
Most of this issue has been resolved by the metrics However, the mix of metric metadata and mutable state still remains a problem in the Lines 12 to 26 in 27f2ead
This will hopefully soon be taken care of as well. After we completely remove the |
When we will pick this issue, we should check if it makes sense to address #2320 in the same cycle. |
For the record. After an internal discussion, we decided to clean a milestone since the issue was jumping between milestones without completion. Once we determine which milestone it lands, we set the right one. |
Closed in favor of #3907 |
We currently define all possible emitted metrics as shared global variables. As this ugly data race fix shows, that's probably not a very good idea, since the
stats.Metric
struct seems to contain some mutable fields.Before embarking on a huge refactoring spree, we should check if the go-metrics library (suggested in this issue) or another one offers us a nicer solution.
The text was updated successfully, but these errors were encountered: