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

support n-ary metric initialization from application environment at startup #31

Merged
merged 1 commit into from Aug 27, 2012
Merged

Conversation

lefant
Copy link
Contributor

@lefant lefant commented Aug 10, 2012

I like being able to initialize a histogram of the nice new
slide_uniform from my application environment on startup like:

[{folsom, [{histogram, [{my_app, my_histo}, slide_uniform, {60, 1028}]
}]}]

The patch makes this possible as well as remaining backward compatible
with old name-only scheme.

@ghost ghost assigned joewilliams Aug 10, 2012
@joewilliams
Copy link
Contributor

Thanks! Please add tests for both cases and I will merge.

@lefant
Copy link
Contributor Author

lefant commented Aug 27, 2012

finally got around to implement a test.

actually caught a bug, since I had not expected binaries as valid metric names. it is covered now.

@joewilliams
Copy link
Contributor

Sorry for the hoops, please squash this PR into one commit.

@lefant
Copy link
Contributor Author

lefant commented Aug 27, 2012

it is you repos history, after all ;)

done.

joewilliams added a commit that referenced this pull request Aug 27, 2012
support n-ary metric initialization from application environment at startup
@joewilliams joewilliams merged commit f9619b7 into boundary:master Aug 27, 2012
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