Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #24 from fiverr/master
Browse files Browse the repository at this point in the history
Updated the dependency in AWS::S3 to AWS - SDK gem
  • Loading branch information
samg committed Mar 8, 2012
2 parents 9c9ccd0 + a99a5a8 commit 9d40136
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/rpm_contrib/instrumentation/aws.rb
Expand Up @@ -13,8 +13,14 @@

executes do
# Instrument connections to the AWS-S3 service
::AWS::S3::Connection::Management::ClassMethods.module_eval do
add_method_tracer :establish_connection!, 'AWS-S3/establish_connection!'
if defined?(::AWS::S3::Connection)
::AWS::S3::Connection::Management::ClassMethods.module_eval do
add_method_tracer :establish_connection!, 'AWS-S3/establish_connection!'
end
else #using aws-sdk
::AWS::S3.class_eval do
add_method_tracer :initialize, 'AWS-S3/establish_connection!'
end
end

# Instrument methods on Bucket
Expand Down

0 comments on commit 9d40136

Please sign in to comment.