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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Client test that can detect data races when emitting metrics from separate goroutines. #180

Merged
merged 1 commit into from Feb 12, 2021

Conversation

matthewdale
Copy link
Contributor

What does this PR do?

Adds a statsd.Client test that can detect data races when recording metrics from separate goroutines.

Inspired by the bug introduced in #178 and fixed with 5cfbb14.

@matthewdale
Copy link
Contributor Author

@hush-hush thanks for fixing the data race bug! Here's the test I used to confirm it was indeed an issue. Hopefully this will help catch data races in the future.

@hush-hush
Copy link
Member

Thanks for the test @matthewdale !

@hush-hush hush-hush merged commit 8b8be9a into DataDog:master Feb 12, 2021
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.

None yet

2 participants