opentelemetry-instrumentation-sidekiq 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/opentelemetry/instrumentation/sidekiq/middlewares/client/tracer_middleware.rb +5 -5
- data/lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb +6 -6
- data/lib/opentelemetry/instrumentation/sidekiq/patches/launcher.rb +1 -1
- data/lib/opentelemetry/instrumentation/sidekiq/patches/poller.rb +1 -1
- data/lib/opentelemetry/instrumentation/sidekiq/patches/processor.rb +1 -1
- data/lib/opentelemetry/instrumentation/sidekiq/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb972133b13c0c07c5f7c4018e427d4a2617a8792521021459d2ad364040a58a
|
4
|
+
data.tar.gz: 8bfb6a10813d9118ab7da9315cbcc5c04d9046cf02c400f1a8de688ce80dd404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dba580cc3ed95aa070d2357a6e623f49a8e7b60b19a48ad978798bd685230109ce73a6a382595beb6eb02832662215bb6abb143fbde4bdbbdde7f2cf2ffa2117
|
7
|
+
data.tar.gz: f3ae67adb3bdc3423928e8cf0ce1c90541594a5ec789aa33c6ff767975a146610c50b509f327fa035554024086ec7b79d6cd8b8afe5c2d2346237ab4b4c70702
|
data/CHANGELOG.md
CHANGED
@@ -14,13 +14,13 @@ module OpenTelemetry
|
|
14
14
|
class TracerMiddleware
|
15
15
|
def call(_worker_class, job, _queue, _redis_pool)
|
16
16
|
attributes = {
|
17
|
-
|
17
|
+
SemanticConventions::Trace::MESSAGING_SYSTEM => 'sidekiq',
|
18
18
|
'messaging.sidekiq.job_class' => job['wrapped']&.to_s || job['class'],
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
SemanticConventions::Trace::MESSAGING_MESSAGE_ID => job['jid'],
|
20
|
+
SemanticConventions::Trace::MESSAGING_DESTINATION => job['queue'],
|
21
|
+
SemanticConventions::Trace::MESSAGING_DESTINATION_KIND => 'queue'
|
22
22
|
}
|
23
|
-
attributes[
|
23
|
+
attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
|
24
24
|
|
25
25
|
span_name = case instrumentation_config[:span_naming]
|
26
26
|
when :job_class then "#{job['wrapped']&.to_s || job['class']} send"
|
@@ -14,14 +14,14 @@ module OpenTelemetry
|
|
14
14
|
class TracerMiddleware
|
15
15
|
def call(_worker, msg, _queue) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
|
16
16
|
attributes = {
|
17
|
-
|
17
|
+
SemanticConventions::Trace::MESSAGING_SYSTEM => 'sidekiq',
|
18
18
|
'messaging.sidekiq.job_class' => msg['wrapped']&.to_s || msg['class'],
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
SemanticConventions::Trace::MESSAGING_MESSAGE_ID => msg['jid'],
|
20
|
+
SemanticConventions::Trace::MESSAGING_DESTINATION => msg['queue'],
|
21
|
+
SemanticConventions::Trace::MESSAGING_DESTINATION_KIND => 'queue',
|
22
|
+
SemanticConventions::Trace::MESSAGING_OPERATION => 'process'
|
23
23
|
}
|
24
|
-
attributes[
|
24
|
+
attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
|
25
25
|
|
26
26
|
span_name = case instrumentation_config[:span_naming]
|
27
27
|
when :job_class then "#{msg['wrapped']&.to_s || msg['class']} process"
|
@@ -15,7 +15,7 @@ module OpenTelemetry
|
|
15
15
|
def ❤ # rubocop:disable Naming/MethodName, Naming/AsciiIdentifiers
|
16
16
|
if instrumentation_config[:trace_launcher_heartbeat]
|
17
17
|
attributes = {}
|
18
|
-
attributes[
|
18
|
+
attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
|
19
19
|
tracer.in_span('Sidekiq::Launcher#heartbeat', attributes: attributes) { super }
|
20
20
|
else
|
21
21
|
OpenTelemetry::Common::Utilities.untraced { super }
|
@@ -13,7 +13,7 @@ module OpenTelemetry
|
|
13
13
|
def enqueue
|
14
14
|
if instrumentation_config[:trace_poller_enqueue]
|
15
15
|
attributes = {}
|
16
|
-
attributes[
|
16
|
+
attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
|
17
17
|
tracer.in_span('Sidekiq::Scheduled::Poller#enqueue', attributes: attributes) { super }
|
18
18
|
else
|
19
19
|
OpenTelemetry::Common::Utilities.untraced { super }
|
@@ -15,7 +15,7 @@ module OpenTelemetry
|
|
15
15
|
def process_one
|
16
16
|
if instrumentation_config[:trace_processor_process_one]
|
17
17
|
attributes = {}
|
18
|
-
attributes[
|
18
|
+
attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
|
19
19
|
tracer.in_span('Sidekiq::Processor#process_one', attributes: attributes) { super }
|
20
20
|
else
|
21
21
|
OpenTelemetry::Common::Utilities.untraced { super }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.22.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.22.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activejob
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: opentelemetry-test-helpers
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
131
|
+
version: '0.3'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
138
|
+
version: '0.3'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec-mocks
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.48.1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.48.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: sidekiq
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -245,10 +245,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
245
245
|
licenses:
|
246
246
|
- Apache-2.0
|
247
247
|
metadata:
|
248
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sidekiq/0.
|
248
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sidekiq/0.24.0/file/CHANGELOG.md
|
249
249
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/sidekiq
|
250
250
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
251
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sidekiq/0.
|
251
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sidekiq/0.24.0
|
252
252
|
post_install_message:
|
253
253
|
rdoc_options: []
|
254
254
|
require_paths:
|
@@ -257,14 +257,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
257
257
|
requirements:
|
258
258
|
- - ">="
|
259
259
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
260
|
+
version: '3.0'
|
261
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
262
|
requirements:
|
263
263
|
- - ">="
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: '0'
|
266
266
|
requirements: []
|
267
|
-
rubygems_version: 3.
|
267
|
+
rubygems_version: 3.2.33
|
268
268
|
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: Sidekiq instrumentation for the OpenTelemetry framework
|