airbrake 8.1.0 → 8.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/rack/middleware.rb +15 -13
- data/lib/airbrake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8819ab2225ac8b9224d2ee701aaf3815a1c18af8
|
4
|
+
data.tar.gz: 44e4c87574f7add4d6a71e5029ddd82e6f26847e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1641b28731f4c05bee5863b3cd59563184a2a17c67c1805654127bf05dba293022f30bb2e1a44bd2da8188d9847fa5632b0eb6c41c3603041a3f23f932ce757
|
7
|
+
data.tar.gz: a0f83696463bc113eabf5f47cecb9ebc6aa3b23e191f8f83a8f8f1f93ba7d18c08bcaeeb75824bde742c3ca2642c25b53c367c8b9e0a509b088c0e7dcaecea2a
|
@@ -43,7 +43,8 @@ module Airbrake
|
|
43
43
|
@notice_notifier.add_filter(filter.new)
|
44
44
|
end
|
45
45
|
|
46
|
-
|
46
|
+
install_action_controller_hooks if defined?(Rails)
|
47
|
+
install_active_record_hooks if defined?(ActiveRecord)
|
47
48
|
end
|
48
49
|
|
49
50
|
# Rescues any exceptions, sends them to Airbrake and re-raises the
|
@@ -97,23 +98,12 @@ module Airbrake
|
|
97
98
|
env['rack.exception']
|
98
99
|
end
|
99
100
|
|
100
|
-
def
|
101
|
-
@performance_notifier.add_filter(
|
102
|
-
Airbrake::Filters::SqlFilter.new(
|
103
|
-
ActiveRecord::Base.connection_config[:adapter]
|
104
|
-
)
|
105
|
-
)
|
106
|
-
|
101
|
+
def install_action_controller_hooks
|
107
102
|
ActiveSupport::Notifications.subscribe(
|
108
103
|
'start_processing.action_controller',
|
109
104
|
Airbrake::Rails::ActionControllerRouteSubscriber.new
|
110
105
|
)
|
111
106
|
|
112
|
-
ActiveSupport::Notifications.subscribe(
|
113
|
-
'sql.active_record',
|
114
|
-
Airbrake::Rails::ActiveRecordSubscriber.new(@performance_notifier)
|
115
|
-
)
|
116
|
-
|
117
107
|
ActiveSupport::Notifications.subscribe(
|
118
108
|
'process_action.action_controller',
|
119
109
|
Airbrake::Rails::ActionControllerNotifySubscriber.new(
|
@@ -121,6 +111,18 @@ module Airbrake
|
|
121
111
|
)
|
122
112
|
)
|
123
113
|
end
|
114
|
+
|
115
|
+
def install_active_record_hooks
|
116
|
+
@performance_notifier.add_filter(
|
117
|
+
Airbrake::Filters::SqlFilter.new(
|
118
|
+
ActiveRecord::Base.connection_config[:adapter]
|
119
|
+
)
|
120
|
+
)
|
121
|
+
ActiveSupport::Notifications.subscribe(
|
122
|
+
'sql.active_record',
|
123
|
+
Airbrake::Rails::ActiveRecordSubscriber.new(@performance_notifier)
|
124
|
+
)
|
125
|
+
end
|
124
126
|
end
|
125
127
|
end
|
126
128
|
end
|
data/lib/airbrake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|