instana 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46ca5cff704edd13d94cd98eff05943e16d54132
4
- data.tar.gz: da416ea68943aee4b223683c8a0a1a7e33d5fbe8
3
+ metadata.gz: 41e9102df185ce17f39e5672ab310253a6da3b5a
4
+ data.tar.gz: 9d33cbb5c796cef2c399569c563c3b378ebd25b7
5
5
  SHA512:
6
- metadata.gz: 1a109723a6d7285203e57d93163c7be999dd3ed7f90b3aff053d40b625a0631dc814773db35d8abed7dbdf62cf08b615649e1f0d8597841ed963354061bdd556
7
- data.tar.gz: ca5605829d78d18841516c6af59a70d552479affd0d353169d86e245fe5e2ec0b3d5e6d1708baa92c57f1ab3f680cb4332bf6246b1e565af83cff93060215c43
6
+ metadata.gz: db1c1bbc9c8281f656504a33ad21c0548fb8e1cdee420ec36efc1123dc98f736dbec6a546e47853bdf24a21ad77089dd19b10eb2bd2ac12a64144630bfc10346
7
+ data.tar.gz: e97976dc47fd4240cb58f8b1ccaf2d918133370cfbbb46c204fdc40a0560aecfeb0e5b9df8a8b8be055e968e7625cff28f0c87c084fcf60ebd2a6eead2210c99
@@ -5,17 +5,23 @@ require "instana/frameworks/instrumentation/mysql2_adapter"
5
5
  require "instana/frameworks/instrumentation/postgresql_adapter"
6
6
 
7
7
  if defined?(::ActiveRecord) && ::Instana.config[:active_record][:enabled]
8
- case ActiveRecord::Base.connection.adapter_name.downcase
9
- when 'mysql'
8
+
9
+ # Mysql
10
+ if defined?(ActiveRecord::ConnectionAdapters::MysqlAdapter)
10
11
  ::Instana.logger.warn "Instrumenting ActiveRecord (mysql)"
11
12
  ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, ::Instana::Instrumentation::MysqlAdapter)
12
13
  ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter.send(:include, ::Instana::Instrumentation::AbstractMysqlAdapter)
13
- when 'mysql2'
14
+
15
+ # Mysql2
16
+ elsif defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
14
17
  ::Instana.logger.warn "Instrumenting ActiveRecord (mysql2)"
15
18
  ActiveRecord::ConnectionAdapters::Mysql2Adapter.send(:include, ::Instana::Instrumentation::Mysql2Adapter)
16
- when 'postgresql'
19
+
20
+ # Postgres
21
+ elsif defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
17
22
  ::Instana.logger.warn "Instrumenting ActiveRecord (postgresql)"
18
23
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, ::Instana::Instrumentation::PostgreSQLAdapter)
24
+
19
25
  else
20
26
  ::Instana.logger.warn "Unsupported ActiveRecord adapter: #{ActiveRecord::Base.connection.adapter_name.downcase}"
21
27
  end
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.4.7"
2
+ VERSION = "1.4.8"
3
3
  VERSION_FULL = "instana-#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.6.8
273
+ rubygems_version: 2.4.5.2
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Ruby sensor for Instana