opentelemetry-instrumentation-sidekiq 0.22.1 → 0.24.0

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: cad503e14f6db8e2af0538555f7dc0e1bcc62af27d9b75c8cac93fb1162f54b4
4
- data.tar.gz: 6e33bfe407b51c64ef8516348eb387ac5ed927d72cf18bcce121316b3a8de65e
3
+ metadata.gz: eb972133b13c0c07c5f7c4018e427d4a2617a8792521021459d2ad364040a58a
4
+ data.tar.gz: 8bfb6a10813d9118ab7da9315cbcc5c04d9046cf02c400f1a8de688ce80dd404
5
5
  SHA512:
6
- metadata.gz: 51c9b131c3fabd342a01084f6a0b8f253b32325f2c54e107b8637cb1e5c315c0a830176506287235e4f89a8cb441f5078620e5b17b9b399aafa19b700e77169f
7
- data.tar.gz: 3bf494a0afdfb2386cb8f96f1af08ea7ee93e2dee20ea5b6f742c0d9d2236aed2e0bd8bed32a058da657b213f25b83b64c444a7399a11d99a0baf54bc71862fe
6
+ metadata.gz: dba580cc3ed95aa070d2357a6e623f49a8e7b60b19a48ad978798bd685230109ce73a6a382595beb6eb02832662215bb6abb143fbde4bdbbdde7f2cf2ffa2117
7
+ data.tar.gz: f3ae67adb3bdc3423928e8cf0ce1c90541594a5ec789aa33c6ff767975a146610c50b509f327fa035554024086ec7b79d6cd8b8afe5c2d2346237ab4b4c70702
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History: opentelemetry-instrumentation-sidekiq
2
2
 
3
+ ### v0.24.0 / 2023-04-17
4
+
5
+ * BREAKING CHANGE: Drop support for EoL Ruby 2.7
6
+
7
+ * ADDED: Drop support for EoL Ruby 2.7
8
+
9
+ ### v0.23.0 / 2023-02-01
10
+
11
+ * BREAKING CHANGE: Drop Rails 5 Support
12
+
13
+ * ADDED: Drop Rails 5 Support
14
+
3
15
  ### v0.22.1 / 2023-01-14
4
16
 
5
17
  * DOCS: Fix gem homepage
@@ -14,13 +14,13 @@ module OpenTelemetry
14
14
  class TracerMiddleware
15
15
  def call(_worker_class, job, _queue, _redis_pool)
16
16
  attributes = {
17
- 'messaging.system' => 'sidekiq',
17
+ SemanticConventions::Trace::MESSAGING_SYSTEM => 'sidekiq',
18
18
  'messaging.sidekiq.job_class' => job['wrapped']&.to_s || job['class'],
19
- 'messaging.message_id' => job['jid'],
20
- 'messaging.destination' => job['queue'],
21
- 'messaging.destination_kind' => 'queue'
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['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
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
- 'messaging.system' => 'sidekiq',
17
+ SemanticConventions::Trace::MESSAGING_SYSTEM => 'sidekiq',
18
18
  'messaging.sidekiq.job_class' => msg['wrapped']&.to_s || msg['class'],
19
- 'messaging.message_id' => msg['jid'],
20
- 'messaging.destination' => msg['queue'],
21
- 'messaging.destination_kind' => 'queue',
22
- 'messaging.operation' => 'process'
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['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
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['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
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['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
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['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
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 }
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sidekiq
10
- VERSION = '0.22.1'
10
+ VERSION = '0.24.0'
11
11
  end
12
12
  end
13
13
  end
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.22.1
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-01-14 00:00:00.000000000 Z
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,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.21.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.21.0
54
+ version: 0.22.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activejob
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '5.2'
61
+ version: '6.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '5.2'
68
+ version: '6.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: appraisal
71
71
  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.41.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.41.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.22.1/file/CHANGELOG.md
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.22.1
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: 2.6.0
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.1.6
267
+ rubygems_version: 3.2.33
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Sidekiq instrumentation for the OpenTelemetry framework