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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc975749d35c9f25ce37dc46dba7d951228104bb00394b42949411616fe25e73
4
- data.tar.gz: 244e2d5a3d14394d710657e1691677b1b04c87c3af8c273862c321b7012ba032
3
+ metadata.gz: eb972133b13c0c07c5f7c4018e427d4a2617a8792521021459d2ad364040a58a
4
+ data.tar.gz: 8bfb6a10813d9118ab7da9315cbcc5c04d9046cf02c400f1a8de688ce80dd404
5
5
  SHA512:
6
- metadata.gz: 6bad7f22364d8641846280f224e0b915dc5776a4dafc5598f1ffc65065b1dcb39e8d9ec5cf05849264e1bb71faf91fa7f89524348c2a289a705521aa76e3d628
7
- data.tar.gz: 7ab0cb13e9d81b5e9b4876e4a988ad8c6773f4f04300448a531e0211a64912900286df635df2dce8902e21676d27cd71f72b9a2940827bacf63d6d8e9bb53fca
6
+ metadata.gz: dba580cc3ed95aa070d2357a6e623f49a8e7b60b19a48ad978798bd685230109ce73a6a382595beb6eb02832662215bb6abb143fbde4bdbbdde7f2cf2ffa2117
7
+ data.tar.gz: f3ae67adb3bdc3423928e8cf0ce1c90541594a5ec789aa33c6ff767975a146610c50b509f327fa035554024086ec7b79d6cd8b8afe5c2d2346237ab4b4c70702
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ### v0.23.0 / 2023-02-01
4
10
 
5
11
  * 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
- '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.23.0'
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.23.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-02-02 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,14 +44,14 @@ 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
@@ -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.23.0/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.23.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: 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