plain_apm 0.8.5 → 0.8.6
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 +13 -8
- data/lib/plain_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf19e534b8992e131bef77e1bdf20937429b658ff9c35b9e82d962e312e54d93
|
4
|
+
data.tar.gz: 55cbe13700a6dbf3b24bd072fd5fa494b7548ae6e5910a5b2bd027a87780caf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 368f4634a31e501089c808a2be49ed33e07050b26596f1da93476074b3f49c48c35157d6ebfde6b2dd2a584bba157d6877da057ff2c8b9b13c94a6a433c749d4
|
7
|
+
data.tar.gz: 7265be58a5b4fdc94b67c9df8f1a13a05cf3ee562ac68b8a85595fc331c4303845a311c68c6d63904ae35f65b47f5a154d540ceba9f6315b79be1186c51c56d5
|
data/lib/plain_apm/agent.rb
CHANGED
@@ -15,6 +15,10 @@ module PlainApm
|
|
15
15
|
instance.start
|
16
16
|
end
|
17
17
|
|
18
|
+
def self.stop
|
19
|
+
instance.stop
|
20
|
+
end
|
21
|
+
|
18
22
|
def collect(event)
|
19
23
|
return unless @config.enabled
|
20
24
|
|
@@ -38,7 +42,15 @@ module PlainApm
|
|
38
42
|
install_hooks
|
39
43
|
|
40
44
|
# TODO: add a cleaner shutdown.
|
41
|
-
at_exit {
|
45
|
+
at_exit { stop }
|
46
|
+
end
|
47
|
+
|
48
|
+
def stop
|
49
|
+
return if @publisher.nil?
|
50
|
+
|
51
|
+
@events << nil
|
52
|
+
@publisher.join
|
53
|
+
@publisher = nil
|
42
54
|
end
|
43
55
|
|
44
56
|
private
|
@@ -61,13 +73,6 @@ module PlainApm
|
|
61
73
|
].map(&:new).each(&:install)
|
62
74
|
end
|
63
75
|
|
64
|
-
def shutdown
|
65
|
-
return if @publisher.nil?
|
66
|
-
|
67
|
-
@events << nil
|
68
|
-
@publisher.join
|
69
|
-
end
|
70
|
-
|
71
76
|
##
|
72
77
|
# Run a background thread that pops events from the queue and posts them to
|
73
78
|
# the target server.
|
data/lib/plain_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plain_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PlainAPM Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|