geemus/excon — pull request #86 by mkb (2011-12-08 22:54:17+00:00)
Title: Allow instrumentation of requests compatible with ActiveSupport::Notifications without requiring same.

I need to be able to track failure rates and execution times of calls to AWS. Since Fog retries are encapsulated within excon, this means instrumenting excon, then modifying Fog to take advantage of that instrumentation.

I can't be the only person who needs to track HTTP calls, so hopefully adding this to excon will be of use to others.

The Rails community is already familiar with ActiveSupport::Notifications so I elected to piggy-back on that effort rather than re-inventing the wheel. However, we don't want to require the active_support gem, so the only assumption made by excon is that the instrumenting class responds to #instrument with particular parameters. I've added a development dependency for active_support but left the runtime dependencies alone.

Tests are included of course.