basho/riak_api — pull request #5 by russelldb (2012-07-11 10:33:37+00:00)
Title: Add PB connection stats to riak_api

The PB connection stats used to be in riak_kv. riak_pb does not depend on riak_kv so it was not calling riak_kv_stat:update/1 for pb connect stats.

This PR fills out those `TODO`s in the code for stats by adding a gen_server for stats that registers stats with folsom, and produces stats on requests. Uses the same pattern as the other riak_* apps. Uses the core stat cache server.