raygun-apm 1.1.10-x86_64-linux → 1.1.13-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/raygun/extconf.rb +1 -0
- data/lib/raygun/2.5/raygun_ext.so +0 -0
- data/lib/raygun/2.6/raygun_ext.so +0 -0
- data/lib/raygun/2.7/raygun_ext.so +0 -0
- data/lib/raygun/3.0/raygun_ext.so +0 -0
- data/lib/raygun/3.1/raygun_ext.so +0 -0
- data/lib/raygun/apm/config.rb +3 -0
- data/lib/raygun/apm/hooks/excon.rb +1 -1
- data/lib/raygun/apm/hooks/httpclient.rb +1 -1
- data/lib/raygun/apm/hooks/internals.rb +5 -5
- data/lib/raygun/apm/hooks/mongodb.rb +1 -1
- data/lib/raygun/apm/hooks/net_http.rb +1 -1
- data/lib/raygun/apm/hooks/redis.rb +1 -1
- data/lib/raygun/apm/tracer.rb +21 -0
- data/lib/raygun/apm/version.rb +1 -1
- data/lib/raygun/apm.rb +0 -10
- data/lib/raygun/raygun_ext.so +0 -0
- data/raygun-apm.gemspec +2 -2
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e05f413647210d5beb65460529ef044bcdb2911b1f3203680ea9df1151a22f1b
|
4
|
+
data.tar.gz: 0e6da193adbe32e67358e8e422fbd2f4403e9d046213d9222bdb7ee0c79910f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 760e697ad5b66b4975eaf8059a55d107b12218f8beb03f7236fd4d16d7e14aadea71f90790fee5e98520b1b71f298db1f6ed1fb4e662b57f678fddd905e41a64
|
7
|
+
data.tar.gz: 415bf95678cdca293eb9501653c85eee8b314e8fa6047160b71cb38dc490f2c8921d3af3df138f76eff79112956b861f716e8b8db4bffbf91306d3ed6f8cf2e3
|
data/ext/raygun/extconf.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/raygun/apm/config.rb
CHANGED
@@ -70,6 +70,9 @@ module Raygun
|
|
70
70
|
config_var 'PROTON_UDP_PORT', as: Integer, default: UDP_SINK_PORT
|
71
71
|
config_var 'PROTON_TCP_HOST', as: String, default: TCP_SINK_HOST
|
72
72
|
config_var 'PROTON_TCP_PORT', as: Integer, default: TCP_SINK_PORT
|
73
|
+
## Conditional hooks
|
74
|
+
config_var 'PROTON_HOOK_REDIS', as: :boolean, default: 'True'
|
75
|
+
config_var 'PROTON_HOOK_INTERNALS', as: :boolean, default: 'True'
|
73
76
|
|
74
77
|
def proton_udp_host
|
75
78
|
if proton_use_multicast == 'True'
|
@@ -88,8 +88,8 @@ module Raygun
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
-
Object
|
92
|
-
IO
|
93
|
-
Random
|
94
|
-
Signal
|
95
|
-
Thread::Mutex
|
91
|
+
Raygun::Apm::Tracer.patch(Object, Raygun::Apm::Hooks::Object)
|
92
|
+
Raygun::Apm::Tracer.patch(IO, Raygun::Apm::Hooks::IO)
|
93
|
+
Raygun::Apm::Tracer.patch(Random, Raygun::Apm::Hooks::Random)
|
94
|
+
Raygun::Apm::Tracer.patch(Signal, Raygun::Apm::Hooks::Signal)
|
95
|
+
Raygun::Apm::Tracer.patch(Thread::Mutex, Raygun::Apm::Hooks::Mutex)
|
@@ -41,5 +41,5 @@ module Raygun
|
|
41
41
|
end
|
42
42
|
|
43
43
|
Mongo::Operation.constants.each do |operation|
|
44
|
-
Mongo::Operation.const_get(operation)
|
44
|
+
Raygun::Apm::Tracer.patch(Mongo::Operation.const_get(operation), Raygun::Apm::Hooks::MongoDB) rescue nil
|
45
45
|
end
|
data/lib/raygun/apm/tracer.rb
CHANGED
@@ -19,6 +19,10 @@ module Raygun
|
|
19
19
|
def instance=(tracer)
|
20
20
|
@__pids[Process.pid] = tracer
|
21
21
|
end
|
22
|
+
|
23
|
+
def patch(concern, hook)
|
24
|
+
concern.prepend(hook) unless concern.ancestors.include?(hook)
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
attr_accessor :config
|
@@ -28,6 +32,7 @@ module Raygun
|
|
28
32
|
initialize_blacklist
|
29
33
|
register_known_library_paths
|
30
34
|
run_agent_connectivity_diagnostics
|
35
|
+
require_hooks
|
31
36
|
ObjectSpace.define_finalizer(self, proc{ disable_tracepoints })
|
32
37
|
# Any fails here is kamikaze for the tracer
|
33
38
|
rescue => e
|
@@ -105,6 +110,22 @@ module Raygun
|
|
105
110
|
check = Raygun::Apm::Diagnostics.new
|
106
111
|
check.verify_agent(self)
|
107
112
|
end
|
113
|
+
|
114
|
+
def require_hooks
|
115
|
+
require "raygun/apm/hooks/internals" if @config.proton_hook_internals
|
116
|
+
require "raygun/apm/hooks/net_http"
|
117
|
+
# conditionally required - may not be bundled
|
118
|
+
conditional_hooks = %w(httpclient excon mongodb)
|
119
|
+
conditional_hooks.each do |hook|
|
120
|
+
begin
|
121
|
+
require "raygun/apm/hooks/#{hook}"
|
122
|
+
rescue LoadError
|
123
|
+
end
|
124
|
+
end
|
125
|
+
if @config.proton_hook_redis
|
126
|
+
require "raygun/apm/hooks/redis" if defined?(Redis::Client)
|
127
|
+
end
|
128
|
+
end
|
108
129
|
end
|
109
130
|
end
|
110
131
|
end
|
data/lib/raygun/apm/version.rb
CHANGED
data/lib/raygun/apm.rb
CHANGED
@@ -16,13 +16,3 @@ require "raygun/apm/blacklist/parser"
|
|
16
16
|
require "raygun/apm/blacklist/translator"
|
17
17
|
require "raygun/apm/tracer"
|
18
18
|
require "raygun/apm/event"
|
19
|
-
require "raygun/apm/hooks/internals"
|
20
|
-
require "raygun/apm/hooks/net_http"
|
21
|
-
# conditionally required - may not be bundled
|
22
|
-
conditional_hooks = %w(httpclient excon mongodb)
|
23
|
-
conditional_hooks.each do |hook|
|
24
|
-
begin
|
25
|
-
require "raygun/apm/hooks/#{hook}"
|
26
|
-
rescue LoadError
|
27
|
-
end
|
28
|
-
end
|
Binary file
|
data/raygun-apm.gemspec
CHANGED
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.extensions = ["ext/raygun/extconf.rb"]
|
24
24
|
spec.required_ruby_version = '>= 2.5.0'
|
25
25
|
|
26
|
-
spec.add_development_dependency "debase-ruby_core_source", "~> 0.10.
|
26
|
+
spec.add_development_dependency "debase-ruby_core_source", "~> 0.10.14"
|
27
27
|
spec.add_development_dependency "bundler", "~> 2.2.15"
|
28
28
|
spec.add_development_dependency "rake", "~> 13.0.3"
|
29
29
|
spec.add_development_dependency "minitest", "~> 5.14.4"
|
30
30
|
spec.add_development_dependency "rake-compiler", "~> 1.1.1"
|
31
|
-
spec.add_development_dependency "rake-compiler-dock", "~> 1.1
|
31
|
+
spec.add_development_dependency "rake-compiler-dock", "~> 1.2.1"
|
32
32
|
spec.add_development_dependency "benchmark_driver", "~> 0.15.9"
|
33
33
|
spec.add_development_dependency "faraday", "~> 1.0.1"
|
34
34
|
spec.add_development_dependency "multipart-post", "~> 2.1.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.13
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Raygun Limited
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase-ruby_core_source
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.14
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.10.
|
26
|
+
version: 0.10.14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.1
|
89
|
+
version: 1.2.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.1
|
96
|
+
version: 1.2.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: benchmark_driver
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +206,7 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 7.1.2
|
209
|
-
description:
|
209
|
+
description:
|
210
210
|
email:
|
211
211
|
- ruby-apm@raygun.io
|
212
212
|
- support@raygun.com
|
@@ -226,6 +226,7 @@ files:
|
|
226
226
|
- lib/raygun/2.6/raygun_ext.so
|
227
227
|
- lib/raygun/2.7/raygun_ext.so
|
228
228
|
- lib/raygun/3.0/raygun_ext.so
|
229
|
+
- lib/raygun/3.1/raygun_ext.so
|
229
230
|
- lib/raygun/apm.rb
|
230
231
|
- lib/raygun/apm/blacklist.rb
|
231
232
|
- lib/raygun/apm/blacklist/parser.rb
|
@@ -241,12 +242,13 @@ files:
|
|
241
242
|
- lib/raygun/apm/hooks/redis.rb
|
242
243
|
- lib/raygun/apm/tracer.rb
|
243
244
|
- lib/raygun/apm/version.rb
|
245
|
+
- lib/raygun/raygun_ext.so
|
244
246
|
- raygun-apm.gemspec
|
245
247
|
homepage: https://raygun.com/platform/apm
|
246
248
|
licenses:
|
247
249
|
- MIT
|
248
250
|
metadata: {}
|
249
|
-
post_install_message:
|
251
|
+
post_install_message:
|
250
252
|
rdoc_options: []
|
251
253
|
require_paths:
|
252
254
|
- lib
|
@@ -258,15 +260,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
260
|
version: '2.5'
|
259
261
|
- - "<"
|
260
262
|
- !ruby/object:Gem::Version
|
261
|
-
version: 3.
|
263
|
+
version: 3.2.dev
|
262
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
265
|
requirements:
|
264
266
|
- - ">="
|
265
267
|
- !ruby/object:Gem::Version
|
266
268
|
version: '0'
|
267
269
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
269
|
-
signing_key:
|
270
|
+
rubygems_version: 3.3.4
|
271
|
+
signing_key:
|
270
272
|
specification_version: 4
|
271
273
|
summary: Raygun application performance monitoring core Profiler
|
272
274
|
test_files: []
|