alacrity-rails 0.7.2 → 0.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b063f660214c374b47a2cfbad8e91c85b6cca2d
|
4
|
+
data.tar.gz: 56b178a5f5e29f4d88f421465a927ece164a2e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9fa5e1f9351d8f9e95f1dccb7563d7bfba39538e2f610f3454eb411e23b80b707c7fa58613fe09764437c9cf14a8399d8acc874fd86d7a22b36bef9b0ae950a
|
7
|
+
data.tar.gz: 8a47e73f3c8eb1ba0a529ea421f83fc127dcc3892e5a65e4bc4ffa58e76d6ad353c1a5410b07d46fb0abae5b1dd39a13d0d19bd10f97ace60e7dc8565c0ee613
|
data/lib/alacrity-rails.rb
CHANGED
@@ -13,8 +13,10 @@ module AlacrityRails
|
|
13
13
|
|
14
14
|
module Probe
|
15
15
|
autoload :ActionController, 'alacrity-rails/probe/action_controller'
|
16
|
+
autoload :ActionMailer, 'alacrity-rails/probe/action_mailer'
|
16
17
|
autoload :ActionView, 'alacrity-rails/probe/action_view'
|
17
18
|
autoload :ActiveModelSerializers, 'alacrity-rails/probe/active_model_serializers'
|
19
|
+
autoload :ActiveJob, 'alacrity-rails/probe/active_job'
|
18
20
|
autoload :ActiveRecord, 'alacrity-rails/probe/active_record'
|
19
21
|
autoload :MongoDriver, 'alacrity-rails/probe/mongo_driver'
|
20
22
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module AlacrityRails
|
2
|
+
module Probe
|
3
|
+
class ActionMailer
|
4
|
+
def self.activate
|
5
|
+
ActiveSupport::Notifications.subscribe 'process.action_mailer' do |name, started, finished, unique_id, data|
|
6
|
+
AlacrityRails::Client.store_timeline_event(
|
7
|
+
name: 'Mailer',
|
8
|
+
event_type: 'mailer',
|
9
|
+
engine: 'ActionMailer',
|
10
|
+
started_at: started,
|
11
|
+
finished_at: finished,
|
12
|
+
detail: "#{data[:mailer]}##{data[:action]}"
|
13
|
+
)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module AlacrityRails
|
2
|
+
module Probe
|
3
|
+
class ActiveJob
|
4
|
+
def self.activate
|
5
|
+
ActiveSupport::Notifications.subscribe 'perform.active_job' do |name, started, finished, unique_id, data|
|
6
|
+
AlacrityRails::Client.store_timeline_event(
|
7
|
+
name: 'Job Queued',
|
8
|
+
event_type: 'job',
|
9
|
+
engine: 'ActiveJob',
|
10
|
+
started_at: started,
|
11
|
+
finished_at: finished,
|
12
|
+
detail: data[:job].class.to_s
|
13
|
+
)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alacrity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alacrity, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -40,7 +40,9 @@ files:
|
|
40
40
|
- lib/alacrity-rails/diagnostic.rb
|
41
41
|
- lib/alacrity-rails/middleware.rb
|
42
42
|
- lib/alacrity-rails/probe/action_controller.rb
|
43
|
+
- lib/alacrity-rails/probe/action_mailer.rb
|
43
44
|
- lib/alacrity-rails/probe/action_view.rb
|
45
|
+
- lib/alacrity-rails/probe/active_job.rb
|
44
46
|
- lib/alacrity-rails/probe/active_model_serializers.rb
|
45
47
|
- lib/alacrity-rails/probe/active_record.rb
|
46
48
|
- lib/alacrity-rails/probe/mongo_driver.rb
|