rackerlabs/repose — pull request #802 by dmnjohns (2013-11-27 16:59:13+00:00)
Title: B-60117 Migrate Metrics to Services Module, AuthN and AuthZ Metrics

By doing so, and by building the services module prior to any other module, we are now able to use metrics in any part of Repose. This means that the external compressing filter and the auth service clients may now be instrumented.

I'd like to note that I made a change to the AuthenticationService interface in order to support metrics for the AuthN and AuthZ filters. While I was hesitant to do so, I believe this may be the best way to approach metrics in external code for the time being. Since the AuthenticationServiceClient cannot request the metrics service directly, it must be passed in. This approach seems more appropriate since many "clients" could be using the AuthenticationServiceClient, and it would be difficult to manage metrics scoping inside of that class.