plain_apm 0.8.4 → 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: ff5ddab9e3475ec09d7ef20f6bc5c6ae64ffa0e3ffa946d84def56c33eb41cde
4
- data.tar.gz: '085a3004d655b642bbd63b295ce7c41531d2264709820b8f9ab35e31bdfe987d'
3
+ metadata.gz: bf19e534b8992e131bef77e1bdf20937429b658ff9c35b9e82d962e312e54d93
4
+ data.tar.gz: 55cbe13700a6dbf3b24bd072fd5fa494b7548ae6e5910a5b2bd027a87780caf6
5
5
  SHA512:
6
- metadata.gz: 960c5aad1354d5cc97e43d537807afeac46cdb41db125e9a832447912d2d7b0934041c8e39965bd7f8727fe9d7e4b9600250ce9c687559bfb02347afe90205b4
7
- data.tar.gz: 7985afc06387dbfca63c0a69665516ebb3d54cdf88cd4532fba427d03594ab9e0e65c7a4dab08b9e1c1f63d912fb68afad22c62f7348b87d5f09c38ef146c117
6
+ metadata.gz: 368f4634a31e501089c808a2be49ed33e07050b26596f1da93476074b3f49c48c35157d6ebfde6b2dd2a584bba157d6877da057ff2c8b9b13c94a6a433c749d4
7
+ data.tar.gz: 7265be58a5b4fdc94b67c9df8f1a13a05cf3ee562ac68b8a85595fc331c4303845a311c68c6d63904ae35f65b47f5a154d540ceba9f6315b79be1186c51c56d5
data/README.md CHANGED
@@ -36,7 +36,7 @@ installing plain_apm with --enable-object-tracing-override flag:
36
36
 
37
37
  gem install plain_apm -- --enable-object-tracing-override
38
38
 
39
- When using bundler, you can configure it to pass this flag to the gem
39
+ When using bundler, you can configure it to pass this flag to gem
40
40
  install by running:
41
41
 
42
42
  bundle config set --global build.plain_apm --enable-object-tracing-override
@@ -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.4"
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.4
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
@@ -132,11 +132,14 @@ metadata:
132
132
  source_code_uri: https://github.com/plainapm/plainapm-ruby
133
133
  changelog_uri: https://github.com/plainapm/plainapm-ruby/blob/main/CHANGELOG.md
134
134
  github_repo: git@github.com:plainapm/plainapm-ruby.git
135
- post_install_message: "\n PlainAPM object tracing is affected by Ractor related
136
- bugs,\n so it is not enabled by default on Ruby 3.\n\n If you are sure
137
- your app does not use Ractors, this can be overridden by\n installing the gem
138
- with --enable-object-tracing-override flag.\n\n Please see https://github.com/plainapm/plainapm-ruby/#installation
139
- for\n more details.\n "
135
+ post_install_message: "\n PlainAPM object tracing is affected by Ractor related bugs,\n
136
+ \ so it is not enabled by default on Ruby 3.\n\n If you are sure your app does
137
+ not use Ractors, this can be overridden by\n installing the gem with --enable-object-tracing-override
138
+ flag:\n\n gem install plain_apm -- --enable-object-tracing-override\n\n or,
139
+ when using bundler, configure it to pass this option to gem install:\n\n bundle
140
+ config set --global build.plain_apm --enable-object-tracing-override\n\n Please
141
+ see https://github.com/plainapm/plainapm-ruby/#installation for\n more details.\n\n
142
+ \ "
140
143
  rdoc_options: []
141
144
  require_paths:
142
145
  - lib