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 +4 -4
- data/README.md +1 -1
- data/lib/plain_apm/agent.rb +13 -8
- data/lib/plain_apm/version.rb +1 -1
- metadata +10 -7
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/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
|
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
|
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
|
@@ -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
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
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
|