-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 metric records logic #468
Conversation
@krnowak please review :) |
@paivagustavo please review :) |
Looks nice. Got any new benchmark results? Thanks :) |
@jmacd please tell me how to run them |
Should be just |
Give me 1h to understand why the stress test blocked exactly where I pointed that it may block :)) |
Cool. This is now the second technique I've seen that uses an atomic integer plus one bit to accomplish lock freedom. Discussed here, and as seen in the Prometheus-Go client. Interestingly (or confusingly), the other technique uses the high bit while this technique uses the low bit. |
@jmacd done you can see the last commit if you are interested where the bug was :). Interestingly I couldn't reproduce on my local machine. |
Cool. The stress test reproduced a number of bugs for me, during development, but it was always on CircleCI and never on my local machine. I think it has to do with limited CPU count? |
@jmacd I have some comments in the future work, please let me know if you want to create an issue for them, also left some todos related. Would like to know if you want to track these and how. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly typos, but the busy waiting during instrument binding makes me uneasy.
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found last small typo, otherwise looks good. Thanks!
Signed-off-by: Bogdan Cristian Drutu <[email protected]>
Changes in the PR:
This PR also:
Possible future improvements: