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 +4 -4
- data/lib/raygun/apm/sidekiq/middleware.rb +7 -5
- data/lib/raygun/apm/sidekiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5fc6b9bda748d50bb29765022b36871e2f19496e33d7514db0ac9b77413b309
|
4
|
+
data.tar.gz: c068cf98e27b072454263dbe9397d388ef6e6793daa3d744de780e7463a8f5da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
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,
|
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
|
-
|
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
|
-
|
130
|
+
Thread.current[:_raygun_sql_event] ||= Raygun::Apm::Event::Sql.new
|
129
131
|
end
|
130
132
|
|
131
133
|
def Ruby_APM_profiler_trace
|
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
|
+
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-
|
11
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: raygun-apm
|