plain_apm 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plain_apm/agent.rb +12 -2
- data/lib/plain_apm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 166f1a5259c2358113a5d383baeb578e5b83c311e37986cc31bd41efaa422307
|
4
|
+
data.tar.gz: e24691b831f7272dc7cd86a4460587f230d51eba9ddeb3cf208d73cb8b76639b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376174018b1fc9d072bc145b579b7300fdc4edde068fe600949233cbef22ad96ca708aeb6d0ce651810a42651d2535b8a4072adcd9b880d0420fe388b2c7ce61
|
7
|
+
data.tar.gz: 85af3e06b5498aefb062af05cba03feefa2ca6db1cfe9e8959c69e309f6769e6b7c64d335fad71358d09c1e0c0daf380c44be3fa9a473023c30a438caff2b043
|
data/lib/plain_apm/agent.rb
CHANGED
@@ -48,6 +48,8 @@ module PlainApm
|
|
48
48
|
def stop
|
49
49
|
return if @publisher.nil?
|
50
50
|
|
51
|
+
uninstall_hooks
|
52
|
+
|
51
53
|
@events << nil
|
52
54
|
@publisher.join
|
53
55
|
@publisher = nil
|
@@ -60,7 +62,15 @@ module PlainApm
|
|
60
62
|
end
|
61
63
|
|
62
64
|
def install_hooks
|
63
|
-
|
65
|
+
hooks.each(&:install)
|
66
|
+
end
|
67
|
+
|
68
|
+
def uninstall_hooks
|
69
|
+
hooks.each(&:uninstall)
|
70
|
+
end
|
71
|
+
|
72
|
+
def hooks
|
73
|
+
@hooks ||= [
|
64
74
|
Hooks::Deploy,
|
65
75
|
Hooks::ActionMailer,
|
66
76
|
Hooks::ActionPack,
|
@@ -70,7 +80,7 @@ module PlainApm
|
|
70
80
|
Hooks::ActiveSupport,
|
71
81
|
Hooks::ErrorReporter,
|
72
82
|
Hooks::Manual
|
73
|
-
].map(&:new)
|
83
|
+
].map(&:new)
|
74
84
|
end
|
75
85
|
|
76
86
|
##
|
data/lib/plain_apm/version.rb
CHANGED