raygun-apm 1.0.36-x86-mingw32 → 1.0.37-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/apm/blacklist.rb +7 -1
- data/lib/raygun/apm/hooks/redis.rb +46 -0
- data/lib/raygun/apm/version.rb +1 -1
- data/lib/raygun/apm.rb +0 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ebd9cb75c38c0330d8e43fc14823dff284e3f2e3a2ff1a5c2f30fec3aee927a
|
4
|
+
data.tar.gz: 9fd4724052237d4264381d4ff20317461e65ee46d6a5917fe558933152b0afcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a07e336052fe3414a380b390bcbc2a18a0fee3643b1fc7f5cc67a6319bc9caabb4951c867d7e0f2d656a0425a118d222ee43ede2f65a1d8a3dfbb7ec04029705
|
7
|
+
data.tar.gz: 6fc2c0dce8a43d9c5378134df216119300e1cf455e5a3a1dce55abd811fee6e31129656a93b9149620a85b5b0faec8e78296cd86a7d51b0bcd38c66274922003
|
Binary file
|
Binary file
|
Binary file
|
data/lib/raygun/apm/blacklist.rb
CHANGED
@@ -158,6 +158,8 @@ module Raygun
|
|
158
158
|
OpenStruct
|
159
159
|
Bundler
|
160
160
|
Delegator
|
161
|
+
PrettyPrint
|
162
|
+
PP
|
161
163
|
}
|
162
164
|
|
163
165
|
HTTP_OUT = %w{
|
@@ -225,6 +227,10 @@ module Raygun
|
|
225
227
|
+Net::HTTP::post_form
|
226
228
|
}
|
227
229
|
|
230
|
+
QUERIES = %w{
|
231
|
+
+Raygun::Apm::Hooks::Redis::process
|
232
|
+
}
|
233
|
+
|
228
234
|
def self.extend_with(list)
|
229
235
|
self.extended_blacklist << list
|
230
236
|
end
|
@@ -234,7 +240,7 @@ module Raygun
|
|
234
240
|
end
|
235
241
|
|
236
242
|
def self.resolve_entries
|
237
|
-
DEFAULT_RUBY + PROFILER + HTTP_OUT + self.extended_blacklist.flatten
|
243
|
+
DEFAULT_RUBY + PROFILER + HTTP_OUT + QUERIES + self.extended_blacklist.flatten
|
238
244
|
end
|
239
245
|
end
|
240
246
|
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Raygun
|
2
|
+
module Apm
|
3
|
+
module Hooks
|
4
|
+
module Redis
|
5
|
+
def process(commands)
|
6
|
+
result = nil
|
7
|
+
if tracer = Raygun::Apm::Tracer.instance
|
8
|
+
started = tracer.now
|
9
|
+
result = super
|
10
|
+
ended = tracer.now
|
11
|
+
event = raygun_apm_sql_event
|
12
|
+
event[:pid] = Process.pid
|
13
|
+
event[:query] = raygun_format_query(commands)
|
14
|
+
event[:provider] = "redis"
|
15
|
+
event[:host] = "#{host}:#{port}"
|
16
|
+
event[:database] = db.to_s
|
17
|
+
event[:duration] = ended - started
|
18
|
+
event[:timestamp] = started
|
19
|
+
event[:tid] = tracer.get_thread_id(Thread.current)
|
20
|
+
tracer.emit(event)
|
21
|
+
result
|
22
|
+
else
|
23
|
+
super
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
def raygun_format_query(commands)
|
29
|
+
commands.map do |command|
|
30
|
+
command.map(&:to_s).join(" ")
|
31
|
+
end.join(", ")
|
32
|
+
end
|
33
|
+
|
34
|
+
def raygun_apm_sql_event
|
35
|
+
@_raygun_apm_sql_event ||= Raygun::Apm::Event::Sql.new
|
36
|
+
end
|
37
|
+
|
38
|
+
def raygun_redis_call
|
39
|
+
yield
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
::Redis::Client.prepend(Raygun::Apm::Hooks::Redis)
|
data/lib/raygun/apm/version.rb
CHANGED
data/lib/raygun/apm.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.37
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Raygun
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-05-
|
12
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: debase-ruby_core_source
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- lib/raygun/apm/config.rb
|
214
214
|
- lib/raygun/apm/event.rb
|
215
215
|
- lib/raygun/apm/hooks/net_http.rb
|
216
|
+
- lib/raygun/apm/hooks/redis.rb
|
216
217
|
- lib/raygun/apm/tracer.rb
|
217
218
|
- lib/raygun/apm/version.rb
|
218
219
|
- raygun-apm.gemspec
|