Skip to content

Instantly share code, notes, and snippets.

@mkb
Created January 31, 2012 01:05
Show Gist options
  • Save mkb/1707962 to your computer and use it in GitHub Desktop.
Save mkb/1707962 to your computer and use it in GitHub Desktop.
connection = Excon.new('http://icanhascheezburger.com/',
:instrumentor => ActiveSupport::Notifications,
:instrumentor_name => 'myapp.excon')
# Elsewhere...
ActiveSupport::Notifications.subscribe(/myapp.excon/) do |*args|
puts "Excon did stuff!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment