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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fece4d0df7f5b93fe2064804ce006fc243e316441336ffff57f3c4697b2fb7c5
4
- data.tar.gz: b64728db3a2377fb0bbe409d9f857ee831f9d0445252fecce8651469c803d8c2
3
+ metadata.gz: bf19e534b8992e131bef77e1bdf20937429b658ff9c35b9e82d962e312e54d93
4
+ data.tar.gz: 55cbe13700a6dbf3b24bd072fd5fa494b7548ae6e5910a5b2bd027a87780caf6
5
5
  SHA512:
6
- metadata.gz: b75d4204a0260e5b2c7977adbdb490a4de634c0ee564038d86f4134fa064168ad904994dac0814000eedee0f8632b97cef120458752648341538368533b9c49b
7
- data.tar.gz: d3e7e1ad7175433a14c77871cada300e18b75004d76b48dc869b5560fcf2d3460e1926e73ff6e50447c3f882d752197d6af6f14a8557df853e3b818ea7d2345d
6
+ metadata.gz: 368f4634a31e501089c808a2be49ed33e07050b26596f1da93476074b3f49c48c35157d6ebfde6b2dd2a584bba157d6877da057ff2c8b9b13c94a6a433c749d4
7
+ data.tar.gz: 7265be58a5b4fdc94b67c9df8f1a13a05cf3ee562ac68b8a85595fc331c4303845a311c68c6d63904ae35f65b47f5a154d540ceba9f6315b79be1186c51c56d5
@@ -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 { shutdown }
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlainApm
4
- VERSION = "0.8.5"
4
+ VERSION = "0.8.6"
5
5
  end
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.5
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-01 00:00:00.000000000 Z
11
+ date: 2024-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest