raygun-apm 1.0.17-x86-linux → 1.0.18-x86-linux
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 +5 -1
- data/lib/raygun/apm/hooks/net_http.rb +7 -6
- data/lib/raygun/apm/tracer.rb +6 -0
- data/lib/raygun/apm/version.rb +1 -1
- data/raygun-apm.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d83edd46684cd28952d5e7149a5e171f3d47219f7fc349c10f19fb662aa0531
|
4
|
+
data.tar.gz: d25ef50693adbc71a62d0128c83d6f19c580aa2aec808ef79df5645e2ab2f390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd9b54750c613fbccb054e7681432879ee4b2f6746b971886f5cb8477f58751b38a1e5fd4e9fa29aa98ec03155a8a464ab0856a29e18225d0a1744f9241ccf0
|
7
|
+
data.tar.gz: e543c031df3dced3ff9ad338a0aed48ca259d4a81f5a7c97572ffa2d3f0b7ab225f8129989882a9c2bc96d5aa79b4272b3ba659d70c095115ae45e4c39d67961
|
Binary file
|
Binary file
|
Binary file
|
data/lib/raygun/apm/blacklist.rb
CHANGED
@@ -8,12 +8,12 @@ module Raygun
|
|
8
8
|
private
|
9
9
|
|
10
10
|
def transport_request(request)
|
11
|
-
if tracer =
|
11
|
+
if tracer = Raygun::Apm::Tracer.instance
|
12
12
|
started = tracer.now
|
13
13
|
response = super
|
14
14
|
ended = tracer.now
|
15
15
|
event = raygun_apm_http_out_event
|
16
|
-
event[:url] = request
|
16
|
+
event[:url] = raygun_apm_url(request)
|
17
17
|
event[:verb] = request.method
|
18
18
|
event[:status] = response.code.to_i
|
19
19
|
event[:duration] = ended - started
|
@@ -26,6 +26,11 @@ module Raygun
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
def raygun_apm_url(request)
|
30
|
+
return request.uri.to_s if request.uri
|
31
|
+
"#{use_ssl? ? "https" : "http"}://#{request["host"] || address}#{request.path}"
|
32
|
+
end
|
33
|
+
|
29
34
|
def raygun_apm_http_out_event
|
30
35
|
@_raygun_apm_http_out_event ||= begin
|
31
36
|
event = Raygun::Apm::Event::HttpOut.new
|
@@ -33,10 +38,6 @@ module Raygun
|
|
33
38
|
event
|
34
39
|
end
|
35
40
|
end
|
36
|
-
|
37
|
-
def raygun_apm_tracer
|
38
|
-
Thread.current.thread_variable_get(:_raygun_apm_tracer)
|
39
|
-
end
|
40
41
|
end
|
41
42
|
end
|
42
43
|
end
|
data/lib/raygun/apm/tracer.rb
CHANGED
data/lib/raygun/apm/version.rb
CHANGED
data/raygun-apm.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://raygun.com/platform/apm"
|
13
13
|
#spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|vendor|tools|ext)/}) || f.match(%r{Rakefile|Gemfile|.git}) }
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|vendor|tools|ext)/}) || f.match(%r{Rakefile|Gemfile|CHANGELOG|.git}) }
|
16
16
|
spec.files += Dir['lib/raygun/**/{2}*/raygun_ext.*']
|
17
17
|
spec.bindir = "exe"
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
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.18
|
5
5
|
platform: x86-linux
|
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-03-
|
12
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: debase-ruby_core_source
|