petrkozorezov/estatist — pull request #2 by keynslug (2012-10-22 15:53:12+00:00)
Title: Add and remove metric fixes

There was initially an issue with add_metric call. As long as metric addition went through add_metric call we were not able to properly gather time-bound metrics, such as meter or simple_meter. It was so because of the timer being created in the caller process. It is ok when add_metric called during gen_server' init, but it is not ok otherwise.

So I've tried to fix this issue and provided some additional self-descriptive patches.