instana 1.4.7 → 1.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/instana/frameworks/instrumentation/active_record.rb +10 -4
- data/lib/instana/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41e9102df185ce17f39e5672ab310253a6da3b5a
|
4
|
+
data.tar.gz: 9d33cbb5c796cef2c399569c563c3b378ebd25b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
9
|
-
|
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
|
-
|
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
|
-
|
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
|
data/lib/instana/version.rb
CHANGED
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.
|
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-
|
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.
|
273
|
+
rubygems_version: 2.4.5.2
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: Ruby sensor for Instana
|