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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fc1e2c19cb9a840b13adf3e1ab382eacf81cb8556345319545f45b6c5f08d59
4
- data.tar.gz: e250c8b454f252756a2ae00a8b4c3a321daf3f443425f534458c6df671c6cdad
3
+ metadata.gz: 8d83edd46684cd28952d5e7149a5e171f3d47219f7fc349c10f19fb662aa0531
4
+ data.tar.gz: d25ef50693adbc71a62d0128c83d6f19c580aa2aec808ef79df5645e2ab2f390
5
5
  SHA512:
6
- metadata.gz: 8ee5a3b0b024bc54b8be7789591e233d524c0debac0f3386839befe30cc3d5404b1ca36c9efe4de1dac3fa6e99537f142cf4841e70b17fc7e2146c1531b87e81
7
- data.tar.gz: e5bed42c048abe85c5bf54870acc8d7692fe4e56c9ef69feecc6594a0037e6075c473d800c6039c8b153bef9bb85faa822f161629c2b2b4199a7478a0479ae1d
6
+ metadata.gz: 5bd9b54750c613fbccb054e7681432879ee4b2f6746b971886f5cb8477f58751b38a1e5fd4e9fa29aa98ec03155a8a464ab0856a29e18225d0a1744f9241ccf0
7
+ data.tar.gz: e543c031df3dced3ff9ad338a0aed48ca259d4a81f5a7c97572ffa2d3f0b7ab225f8129989882a9c2bc96d5aa79b4272b3ba659d70c095115ae45e4c39d67961
Binary file
Binary file
Binary file
@@ -152,7 +152,11 @@ module Raygun
152
152
  Addrinfo
153
153
  Open3
154
154
  Shellwords
155
- Weakref
155
+ WeakRef
156
+ RbConfig
157
+ Singleton
158
+ OpenStruct
159
+ Bundler
156
160
  }
157
161
 
158
162
  def self.extend_with(list)
@@ -8,12 +8,12 @@ module Raygun
8
8
  private
9
9
 
10
10
  def transport_request(request)
11
- if tracer = raygun_apm_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.uri.to_s
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
@@ -1,7 +1,13 @@
1
1
  require 'raygun/apm/blacklist'
2
+
2
3
  module Raygun
3
4
  module Apm
4
5
  class Tracer
6
+
7
+ class << self
8
+ attr_accessor :instance
9
+ end
10
+
5
11
  attr_accessor :config
6
12
 
7
13
  def initialize(env=ENV)
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.17"
3
+ VERSION = "1.0.18"
4
4
  end
5
5
  end
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.17
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-08 00:00:00.000000000 Z
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