raygun-apm 1.0.20-x64-mingw32 → 1.0.21-x64-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e3695041425b6f5bc61d9db86338ac51c55f546fe6d39a035be3f43e38835b3
4
- data.tar.gz: bae1a10dc1ab1c24b46fb02585b416b09868268b2b7a53dbd2da65c5c39f1cb0
3
+ metadata.gz: 36d7eef65a36f9cd3087740e66bb35259aea896fb2fb7cea512f0922900a1cfd
4
+ data.tar.gz: 35f04062d3542fb4e53f3be4be9df78b8c96b932d03b240b8f735e87c889a478
5
5
  SHA512:
6
- metadata.gz: 0ee368b30ef89d5188f2d05a2b59c25b70c41ca86686eee30f62b8caf6402d0856986fcb453ff41c4538ced8efad568fbe52c800ac2b60255844fe7aebced94b
7
- data.tar.gz: 7c2d4bba90c8cb6e9b565df17ce123727d7c87dc635ede0b0d0862b05c31bc62e952a651e7e60eddf547ebf166dc821c3a060037b0fb61de24b6c126e26d85fa
6
+ metadata.gz: e03656d3f1242a3ff7f3c2f5b18fcb16dc5cee4c5c9019df26157ffed4c7b72a174b25ad8ebf8842f6d9545ec049037fb47a99d69846db0bd67719760c3b4e80
7
+ data.tar.gz: c55d6584d1e5502f94dc43033c9d357951fde59a8d8b00fe25fdcdf0c41c50729dc1a35ce979d3e0f6140286c1ae530177bdbda3a9e2d8abf068065d2dd10319
Binary file
Binary file
Binary file
@@ -13,6 +13,7 @@ module Raygun
13
13
  response = super
14
14
  ended = tracer.now
15
15
  event = raygun_apm_http_out_event
16
+ event[:pid] = Process.pid
16
17
  event[:url] = raygun_apm_url(request)
17
18
  event[:verb] = request.method
18
19
  event[:status] = response.code.to_i
@@ -32,11 +33,7 @@ module Raygun
32
33
  end
33
34
 
34
35
  def raygun_apm_http_out_event
35
- @_raygun_apm_http_out_event ||= begin
36
- event = Raygun::Apm::Event::HttpOut.new
37
- event[:pid] = Process.pid
38
- event
39
- end
36
+ @_raygun_apm_http_out_event ||= Raygun::Apm::Event::HttpOut.new
40
37
  end
41
38
  end
42
39
  end
@@ -3,9 +3,15 @@ require 'raygun/apm/blacklist'
3
3
  module Raygun
4
4
  module Apm
5
5
  class Tracer
6
-
6
+ @__pids ||= {}
7
7
  class << self
8
- attr_accessor :instance
8
+ def instance
9
+ @__pids[Process.pid]
10
+ end
11
+
12
+ def instance=(tracer)
13
+ @__pids[Process.pid] = tracer
14
+ end
9
15
  end
10
16
 
11
17
  attr_accessor :config
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.20"
3
+ VERSION = "1.0.21"
4
4
  end
5
5
  end
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.20
4
+ version: 1.0.21
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-18 00:00:00.000000000 Z
12
+ date: 2020-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source