raygun-apm-sidekiq 1.1.4 → 1.1.5

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: 3fde53b06b1150e3cbf5c9583e59624c44390014da4645786f0848dec62abc1f
4
- data.tar.gz: 0b460eb533f2da95e624e71a3436aa96cc8f2eee111719bceea09a5b276a6fb3
3
+ metadata.gz: c5fc6b9bda748d50bb29765022b36871e2f19496e33d7514db0ac9b77413b309
4
+ data.tar.gz: c068cf98e27b072454263dbe9397d388ef6e6793daa3d744de780e7463a8f5da
5
5
  SHA512:
6
- metadata.gz: c8b870360400b4510a5d7db4eac6dc18a219a05a2894ef7e85941c9044f86324a35dcb31d22b5f8536089150c6f6caeafa198a46f59dd94c138e8d2c1a0602ee
7
- data.tar.gz: 74ac9375c761063527d26034f6856823b1a1321e99a4cbe76d0246df075d9561262b43572363388d2895a3e6f7e1b6a5802a0afd2e0a860cd26b7cd091606845
6
+ metadata.gz: f5c0d359d0c962459877623398dd7be3de36998f84bdbff8a06ed2cb5e5a9c7f0ee25e8079696a6a7d9d05fbc0ac48df464dd22d1a6a0beba39da3757038f5cc
7
+ data.tar.gz: c4da6201e7bfbdca63853292c1cf7d13d1c41a274d1073fdeeaea232236fc723bf2c323101e6bdfa8358d33a389b82294ed9cf0a51b6fc0421ef1cd98658e30c
@@ -17,18 +17,19 @@ module Raygun
17
17
 
18
18
  def call(worker, job_hash, queue)
19
19
  # Can be nil if we had a fatal error
20
+ worker_started = nil
20
21
  if @tracer
21
- @worker_started = @tracer.now
22
+ worker_started = @tracer.now
22
23
  @tracer.start_trace
23
24
  end
24
25
  exception = nil
25
26
  Ruby_APM_profiler_trace do
26
27
  begin
27
28
  yield
28
- fake_http_in_handler(@tracer, @worker_started, job_hash, queue, nil) if @tracer
29
+ fake_http_in_handler(@tracer, worker_started, job_hash, queue, nil) if @tracer
29
30
  rescue => e
30
31
  crash_report_exception(e)
31
- fake_http_in_handler(@tracer, @worker_started, job_hash, queue, e) if @tracer
32
+ fake_http_in_handler(@tracer, worker_started, job_hash, queue, e) if @tracer
32
33
  exception = e
33
34
  end
34
35
  end
@@ -65,6 +66,7 @@ module Raygun
65
66
  warn "[Raygun APM] shutting down due to error - #{exception.message} #{exception.backtrace.join("\n")}"
66
67
  # Kill extended event subcriptions
67
68
  ActiveSupport::Notifications.unsubscribe(@sql_subscriber)
69
+ @sql_subscriber = nil
68
70
  warn "[Raygun APM] notification hooks unsubscribed"
69
71
  # Let the GC clean up the sink thread through the finalizer below
70
72
  @tracer = nil
@@ -89,7 +91,7 @@ module Raygun
89
91
  end
90
92
 
91
93
  def http_in_event
92
- @http_in_event ||= begin
94
+ Thread.current[:_raygun_http_in_event] ||= begin
93
95
  event = Raygun::Apm::Event::HttpIn.new
94
96
  event[:verb] = "POST"
95
97
  event
@@ -125,7 +127,7 @@ module Raygun
125
127
  end
126
128
 
127
129
  def sql_event
128
- @sql_event ||= Raygun::Apm::Event::Sql.new
130
+ Thread.current[:_raygun_sql_event] ||= Raygun::Apm::Event::Sql.new
129
131
  end
130
132
 
131
133
  def Ruby_APM_profiler_trace
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Sidekiq
4
- VERSION = "1.1.4"
4
+ VERSION = "1.1.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raygun Limited
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-13 00:00:00.000000000 Z
11
+ date: 2022-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raygun-apm