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

Use server-scoped registry for metrics #28

Merged
merged 1 commit into from
Feb 4, 2016
Merged

Use server-scoped registry for metrics #28

merged 1 commit into from
Feb 4, 2016

Conversation

fsouza
Copy link
Contributor

@fsouza fsouza commented Feb 4, 2016

This avoids having a global registry across different servers, and also avoids the need for always calling
metrics.DefaultRegistry.UnregisterAll() on some tests (sometimes on loop iterations, if you have a table-driven test).

Please let me know what you think of these changes!

This avoids having a global registry across different servers, and also
avoids the need for always calling
metrics.DefaultRegistry.UnregisterAll() on some tests (sometimes on loop
iterations, if you have a table-driven test).
jprobinson added a commit that referenced this pull request Feb 4, 2016
Use server-scoped registry for metrics
@jprobinson jprobinson merged commit 2a003aa into nytimes:master Feb 4, 2016
@jprobinson
Copy link
Contributor

lovely!

Thanks again, @fsouza!

@fsouza fsouza deleted the server-scoped-metrics branch February 4, 2016 22:52
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