raygun-apm 1.0.17-x86-mingw32 → 1.0.18-x86-mingw32

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: 12560aa31054a54fa245a7fee1a8b3a8e05041f14f0d2aa2fe01294a3e98f53a
4
- data.tar.gz: dd79584a4f39adc20d9d7f4d2823e084c3ce48f45cc86847ba844e931eca00c1
3
+ metadata.gz: 3016725d0fa9cb3d952abc69c49f48aea5ed0ee985775b8c12ac60c3ea0dcbd4
4
+ data.tar.gz: 4feed1b07fcc88f90f404b2976ddfd8bec90e0560f46ccbd72d847a04350b003
5
5
  SHA512:
6
- metadata.gz: 061ef042e8bc323e39e273ea3242252b279147ec215bcb0d2f6cb8c3cc6d4c90c981af140150b1fae2104bab91967383c537dfaae6c50a692fd6d564bbaa68ab
7
- data.tar.gz: d082dd0fa187538cf9e74230f95162d20e3573bd7bcdbaca996c70eaec220b82dde0784c9a675d6aeeea04701770bc04ebf393771646b889ce1dc41ab6ec5785
6
+ metadata.gz: 4d045fa0fc662aee80188589f76911eb0e4e534bc1f508a048436eaa00bc322e36b29c8615da3af843ba56905e67ee1dcdf8f472646219bfb1af7ed8a4e08878
7
+ data.tar.gz: 43d700bd566a093c8d91caa80b32b5e9cc83a73211595644784406e7881a8ea814886a60f5c0fd96dc8e3c52ca4b333c0c0c69ccf9a4eca28c6e5ba4647496e8
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-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-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