Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collectorID calculation for Unregister() #663

Merged
merged 1 commit into from Oct 17, 2019

Conversation

costela
Copy link
Contributor

@costela costela commented Oct 17, 2019

This PR fixes the regression from 1.2.0 where the calculation of collectorID changed during Register(), but not during Unregister()

It also brings the vec code closer to the rest by addopting xxhash everywhere. (reverted, see #663 (comment))

Finally, we also add a simple test case to ensure this doesn't happen again! 馃槈

fixes #662

@beorn7
Copy link
Member

beorn7 commented Oct 17, 2019

Thanks for the fix of unregister.

However, the vec part should stay with fnv64a. See commit description of ee1078a

@costela
Copy link
Contributor Author

costela commented Oct 17, 2019

@beorn7 got it. Will revert that part.

Signed-off-by: Leo Antunes <leo@costela.net>
@costela
Copy link
Contributor Author

costela commented Oct 17, 2019

Done! 鉁旓笍

Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again, will merge on green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: unregistering "builtin" collectors stopped working with 1.2.0
2 participants