raygun-apm-sidekiq 1.0.11 → 1.0.12

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: ada58e6aa2ff6b48c268217c38693cac278aa306f682eb2dc69f73edb53b3b2e
4
- data.tar.gz: 379565ec5a6a69f2f1f895bdbe60c7506a6eccd7cc913a773591021bb8a44003
3
+ metadata.gz: 9d7f0de52da00010cd3d499c15ceecf7f687983fd5a03b938768ec997e70a966
4
+ data.tar.gz: 3dd1bbf9171539d4ec427cef365d712ccb02b54d02ba748e7d3882a7a13b1cd7
5
5
  SHA512:
6
- metadata.gz: bba188aa02c29dea66a6e8936da18a744328fa583e848aebb7fa37a524a0d79ba726b675106663c707252bf4b2179a288e7ec3f3149ee2426aeee0b65f8b0906
7
- data.tar.gz: e9302fe170f3eb1b848303908399b5e9b507dcd6234cda89157eb0ccd0594ec95fdc7551385cbbb676050c0c32247d50595c781a39f31a7f514a9d0e9bb2877d
6
+ metadata.gz: d38d374b6b8c4e29d015abbbca69b513cb934e4e5c942bfba619f9d23bcd85bb84c392080245ee578e0aa95ab74e04ff175732fedbf27503ecd4838afd25c9ee
7
+ data.tar.gz: 42f5e127cdc0f3be52f953b3b73807a6fdd2097f77bde16b8663bce030e122073e6f266a7500072e927dcb238111e6ffbb6dc9b1a4689a3e530765e4caeaefea
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.0.12 (March 25, 2020)
4
+
5
+ * Do not cache PID on HTTP OUT and SQL events
6
+
3
7
  == 1.0.11 (March 15, 2020)
4
8
 
5
9
  * Emit the happy path and error state HTTP IN events for Sidekiq jobs WITHIN the entrypoint function for the agent to pick it up
@@ -58,6 +58,7 @@ module Raygun
58
58
  def self.fake_http_in_handler(tracer, started, worker_instance, msg, queue, exception)
59
59
  ended = tracer.now
60
60
  event = http_in_event
61
+ event[:pid] = Process.pid
61
62
  event[:url] = "sidekiq://#{queue}/#{msg["class"]}?#{msg["jid"]}"
62
63
  event[:status] = exception ? 500 : 200
63
64
  event[:duration] = ended - started
@@ -73,7 +74,6 @@ module Raygun
73
74
  def self.http_in_event
74
75
  @http_in_event ||= begin
75
76
  event = Raygun::Apm::Event::HttpIn.new
76
- event[:pid] = Process.pid
77
77
  event[:verb] = "POST"
78
78
  event
79
79
  end
@@ -87,6 +87,7 @@ module Raygun
87
87
  ObjectSpace._id2ref(notification.payload[:connection_id])
88
88
  end
89
89
  event = sql_event
90
+ event[:pid] = Process.pid
90
91
  event[:query] = notification.payload[:sql]
91
92
 
92
93
  # XXX this is hacky
@@ -107,11 +108,7 @@ module Raygun
107
108
  end
108
109
 
109
110
  def self.sql_event
110
- @sql_event ||= begin
111
- event = Raygun::Apm::Event::Sql.new
112
- event[:pid] = Process.pid
113
- event
114
- end
111
+ @sql_event ||= Raygun::Apm::Event::Sql.new
115
112
  end
116
113
 
117
114
  def Ruby_APM_profiler_trace
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Sidekiq
4
- VERSION = "1.0.11"
4
+ VERSION = "1.0.12"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
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-15 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: raygun-apm