aws-xray 0.32.0 → 0.32.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f836cc2b95778f08b4b4e751d4917dcf44fb042
4
- data.tar.gz: fa4505884970bdd4016d4a0e5b3ed0dd0d515ee9
3
+ metadata.gz: d11b7c6ff399ca4649fb5ad82eb3c6dcf8988e77
4
+ data.tar.gz: 00bcf28cadccf4d3345b8eac6fa3bcf67c40caa0
5
5
  SHA512:
6
- metadata.gz: 38563eadc0beeeb77c701e6faf8256d8b7ca64f04184105101f38fdb767ba5bba936363e26c88536f69351d606b358b2dae94f654f6e408dfd2835f538aee095
7
- data.tar.gz: fe472b43014a9207c3bcd93916a1d2d6e4f625208ccb6a9f5d43113e33d6c55930def7d744661ecda79dc70e2df22b4b93f35df1984fa4093d5b7770f3a206df
6
+ metadata.gz: d9c402b81de88eb7e43243886f41e1c62c0900858cd575926752468f3924ca869758da3889c48fe371abadec3347c573f19ca652a3e42cc3ba11a47fc4f5721c
7
+ data.tar.gz: 9c471ba49ce067607d584ac14ca76edccf922d1d62700980de9dbd0c1b575e6adfad975ec947e4b547713f7b47c4666133607701c6b3053ba3d97ea7b15eae5b
@@ -7,7 +7,7 @@ module Aws
7
7
  module ActiveRecord
8
8
  extend self
9
9
 
10
- IGNORE_NAMES = [nil, 'SCHEMA']
10
+ IGNORE_NAMES = ['SCHEMA', 'ActiveRecord::SchemaMigration Load']
11
11
 
12
12
  # event has #name, #time, #end, #duration, #payload
13
13
  # payload has #sql, #name, #connection_id, #binds, #cached
@@ -81,10 +81,6 @@ module Aws
81
81
  end
82
82
 
83
83
  # maybe old version?
84
- if defined?(ActiveSupport::Notifications) && ActiveSupport::Notifications.respond_to?(:subscribe)
85
- ActiveSupport::Notifications.subscribe('sql.active_record') do |*args|
86
- Aws::Xray::Hooks::ActiveRecord.record(ActiveSupport::Notifications::Event.new(*args))
87
- end
88
- else
89
- $stderr.puts('Skip hooking active record events because this version of active record is not supported')
84
+ ActiveSupport::Notifications.subscribe('sql.active_record') do |*args|
85
+ Aws::Xray::Hooks::ActiveRecord.record(ActiveSupport::Notifications::Event.new(*args))
90
86
  end
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.32.0'
3
+ VERSION = '0.32.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono