raygun-apm 1.0.17-x64-mingw32 → 1.0.18-x64-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: b1744e8c17d313340d4dc5b264f178219c52b8b983e21fb6d5380cf716634912
4
- data.tar.gz: 25a307d2af519d26540228bfb88014c4fab5b497ac2d2da7d94618e6d0f37a4b
3
+ metadata.gz: 5d533a2c6032584aabb8ce9c90b4cb22102b1415f705cbd658dd44b2cc7d7ed7
4
+ data.tar.gz: 534d3450380d81f30d5fed479583a48f281f5f764b95a72b69f7549a83d94998
5
5
  SHA512:
6
- metadata.gz: 970bc2df5301fcbde76ddf98b008465951c357ec515c707974fc1c0b585c6b629a8a44e6fb1ceb9b537689655e307a02a678bf7da9a916d0fe02f472b80e3bd9
7
- data.tar.gz: 573f4e1ff975b4d5a2f049002c10b6ea6895b4e64cdd4534b8e480ee39ae14acaa5b1584d9391297417e4a9a94b556ae72404b994f634e023afb517d7884c026
6
+ metadata.gz: 806dfa7ce8da60a5be8cf56e5429bd93ac0c57c1cca257b91034207c3bbbbbb71aa500d0a49bdc9b84abaa49292756072dc35435e0ef8c4703ff8ea840b8651c
7
+ data.tar.gz: f6020daeabba76b46385bb9692eb059f592011fe180110f41b2d752de67a488f341ecb53f61843ff4da3426710ae1d8f7ba0405e26f278fab31e0163d2082f78
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: x64-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