epsagon 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epsagon.rb +4 -1
- data/lib/epsagon_constants.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c6a213fb12b5ded33f1d938b306f56f6de61936197c10be80d53b11258483c1
|
4
|
+
data.tar.gz: 34890a4a25d8bf528dc442b975504d1e70b177a09a7868b56538a9b6b112f3d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ba4c84e5db6f25b6f68c7c31cbd8c694098ac8542c893735955328a18b58f5b49b436dab779dcac6759f246394c8152e0c3ef8791e4169a4abcf2f73e831e0
|
7
|
+
data.tar.gz: 95f6e44d44be2917c1a6cb9b224c838a1b46aa0866fe991c5aa8e0ebf6cbd9703f71ede6d871c7eaebbd499d391c19bd8d887ee25a637c581628362e2fa7442d
|
data/lib/epsagon.rb
CHANGED
@@ -109,7 +109,6 @@ module SpanExtension
|
|
109
109
|
end
|
110
110
|
|
111
111
|
module SidekiqClientMiddlewareExtension
|
112
|
-
|
113
112
|
def call(_worker_class, job, _queue, _redis_pool)
|
114
113
|
config = OpenTelemetry::Instrumentation::Sidekiq::Instrumentation.instance.config[:epsagon] || {}
|
115
114
|
attributes = {
|
@@ -140,6 +139,7 @@ end
|
|
140
139
|
|
141
140
|
module SidekiqServerMiddlewareExtension
|
142
141
|
def call(_worker, msg, _queue)
|
142
|
+
inner_exception = nil
|
143
143
|
config = OpenTelemetry::Instrumentation::Sidekiq::Instrumentation.instance.config[:epsagon] || {}
|
144
144
|
parent_context = OpenTelemetry.propagation.text.extract(msg)
|
145
145
|
attributes = {
|
@@ -175,7 +175,10 @@ module SidekiqServerMiddlewareExtension
|
|
175
175
|
) do |runner_span|
|
176
176
|
yield
|
177
177
|
end
|
178
|
+
rescue Exception => e
|
179
|
+
inner_exception = e
|
178
180
|
end
|
181
|
+
raise inner_exception if inner_exception
|
179
182
|
end
|
180
183
|
end
|
181
184
|
|
data/lib/epsagon_constants.rb
CHANGED