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

Allow renaming of metric fields. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Allow renaming of metric fields. #4

wants to merge 3 commits into from

Conversation

snakeru
Copy link

@snakeru snakeru commented Aug 25, 2017

Hi.

In our project we have somewhat different scheme of metrics naming, for example "hit.count" instead of "hitCount".

Would you mind including such change? Note that I am new to Java so this PR might need further work - just let me know.

Best regards,
Alexey Nezhdanov

@stigkj
Copy link
Member

stigkj commented Aug 26, 2017

Maybe it would be better to use the builder pattern for setting the various names, something like

GuavaMetrics.with().hitCountName("hit.count")....for("cacheName", cache)

@snakeru
Copy link
Author

snakeru commented Sep 8, 2017

Hi Stig.

Frankly, I already lost context since it was busy time, but looking at my commits now (and running "mvn test" once again just to be sure) it seems that I actually pushed out the changes I intended to push.

Could you please take another look?

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.

3 participants