lib/instana/activators/aws_sdk_s3.rb in instana-1.200.0.pre1 vs lib/instana/activators/aws_sdk_s3.rb in instana-1.200.0
- old
+ new
@@ -3,10 +3,10 @@
module Instana
module Activators
class AwsS3 < Activator
def can_instrument?
- defined?(Aws::S3::Client)
+ defined?(::Aws::S3::Client) && ::Aws::S3::Client.respond_to?(:add_plugin)
end
def instrument
require 'instana/instrumentation/aws_sdk_s3'