Skip to content

Commit

Permalink
Merge pull request #752 from creditkudos/aws-sdk-core
Browse files Browse the repository at this point in the history
Detect aws-sdk-core as well as the monolithic aws-sdk gem
  • Loading branch information
delner authored May 10, 2019
2 parents 878fbc7 + ed0895a commit 411ce3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ddtrace/contrib/aws/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class Integration
register_as :aws, auto_patch: true

def self.version
Gem.loaded_specs['aws-sdk'] && Gem.loaded_specs['aws-sdk'].version
if Gem.loaded_specs['aws-sdk']
Gem.loaded_specs['aws-sdk'].version
elsif Gem.loaded_specs['aws-sdk-core']
Gem.loaded_specs['aws-sdk-core'].version
end
end

def self.present?
Expand Down

0 comments on commit 411ce3a

Please sign in to comment.