opentelemetry-instrumentation-sidekiq 0.23.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -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: 1d9e85a821151dfe7cc6c016e851d9f56772ae290891609fe90e98b0f3c2ae63
|
4
|
+
data.tar.gz: 86d8592cc69451ddfc8975c7ecb878057850606f1592d714c7de462deb43470e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc4b1552858cb4caa1a5a4456eea7b73e025b9bd1b53c4d81d7a8ed6adf12f7e31673047fe4e46ce2e8e1aa04a188cfb4ded42c8c6b752595a18600551a3ca11
|
7
|
+
data.tar.gz: 03a17ecc6085679e4bf85dee0d0ca8d7a61f43117a93ace973e0f7d9ce5bbaf7f145a53d2f55b32fba6a0086ae332d5c20915b537c13f50b3fd5b8ca533b3362
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-sidekiq
|
2
2
|
|
3
|
+
### v0.24.1 / 2023-06-05
|
4
|
+
|
5
|
+
* FIXED: Base config options
|
6
|
+
|
7
|
+
### v0.24.0 / 2023-04-17
|
8
|
+
|
9
|
+
* BREAKING CHANGE: Drop support for EoL Ruby 2.7
|
10
|
+
|
11
|
+
* ADDED: Drop support for EoL Ruby 2.7
|
12
|
+
|
3
13
|
### v0.23.0 / 2023-02-01
|
4
14
|
|
5
15
|
* BREAKING CHANGE: Drop Rails 5 Support
|
@@ -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.1
|
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-06-05 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.1
|
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.1
|
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.50.2
|
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.50.2
|
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.1/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.1
|
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
|