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 +4 -4
- data/lib/aws/xray/hooks/active_record.rb +3 -7
- data/lib/aws/xray/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d11b7c6ff399ca4649fb5ad82eb3c6dcf8988e77
|
4
|
+
data.tar.gz: 00bcf28cadccf4d3345b8eac6fa3bcf67c40caa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = [
|
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
|
-
|
85
|
-
ActiveSupport::Notifications.
|
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
|
data/lib/aws/xray/version.rb
CHANGED