opentelemetry-instrumentation-que 0.6.1 → 0.7.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: b002b6a18b6060dc91cba7a07ef363a876a8f80aae2b7158acc13aaea5eeb1e9
4
- data.tar.gz: 6d2b621b3a0b71de59474773ace767aa0edb88ced8c73b25a5246b0184721953
3
+ metadata.gz: b2bbbba5e64be2adb78788b8b170b8ac9c62f8f67a191d8bf6e3e1e5748f7804
4
+ data.tar.gz: 0db850fef370111e2a2bd9dc3ab8e9c1f7f147d35404f80dbdd5a6eab6167777
5
5
  SHA512:
6
- metadata.gz: a7e4fe04be57b7e7a107ec61b621628b86f9099c44b2b57d8841b9f59852841dae8924919e5d04a6504c6b9aecda3f4d598a91434de9527a78e50ff54d1c753b
7
- data.tar.gz: b669ba2147651707f2067a7416aa0a773dbdd487bc3bd545a15ffd45d2c91ae13c398c9cd089153cba7534b93102f20d91493680311ae3ec484778c389ab9234
6
+ metadata.gz: 1a84213f2bddd3cf9737d47b7595c5e227f6fb574d2e64b6d29555b51257ed7955393ba3933c8c3a29d85c0cf877106e3b290657eef4dbf450befefc7eb7830d
7
+ data.tar.gz: 67e09a8daab3bf1bc4654404d83f56e57681c78b56bca85e27ce656719916dfbbe76ccddbcf65849956e87d3aff89c2deb8259472464fa10f9cee34386cae660
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-que
2
2
 
3
+ ### v0.7.0 / 2023-09-07
4
+
5
+ * FIXED: Align messaging instrumentation operation names
6
+
7
+ ### v0.6.2 / 2023-08-07
8
+
9
+ * FIXED: Correctly set bulk_enqueue job options
10
+
3
11
  ### v0.6.1 / 2023-06-05
4
12
 
5
13
  * FIXED: Base config options
@@ -22,7 +22,7 @@ module OpenTelemetry
22
22
  tracer = Que::Instrumentation.instance.tracer
23
23
  otel_config = Que::Instrumentation.instance.config
24
24
 
25
- tracer.in_span('send', kind: :producer) do |span|
25
+ tracer.in_span('publish', kind: :producer) do |span|
26
26
  # Que doesn't have a good place to store metadata. There are
27
27
  # basically two options: the job payload and the job tags.
28
28
  #
@@ -46,7 +46,10 @@ module OpenTelemetry
46
46
  # In Que version 2.1.0 `bulk_enqueue` was introduced and in order
47
47
  # for it to work, we must pass `job_options` to `bulk_enqueue` instead of enqueue.
48
48
  if gem_version >= Gem::Version.new('2.1.0') && Thread.current[:que_jobs_to_bulk_insert]
49
- Thread.current[:que_jobs_to_bulk_insert][:job_options] = job_options.merge(tags: tags)
49
+ Thread.current[:que_jobs_to_bulk_insert][:job_options] = Thread.current[:que_jobs_to_bulk_insert][:job_options]&.merge(tags: tags) do |_, a, b|
50
+ a.is_a?(Array) && b.is_a?(Array) ? a.concat(b) : b
51
+ end
52
+
50
53
  job = super(*args, **arg_opts)
51
54
  job_attrs = Thread.current[:que_jobs_to_bulk_insert][:jobs_attrs].last
52
55
  else
@@ -54,7 +57,7 @@ module OpenTelemetry
54
57
  job_attrs = job.que_attrs
55
58
  end
56
59
 
57
- span.name = "#{job_attrs[:job_class]} send"
60
+ span.name = "#{job_attrs[:job_class]} publish"
58
61
  span.add_attributes(QueJob.job_attributes(job_attrs))
59
62
 
60
63
  job
@@ -70,7 +73,7 @@ module OpenTelemetry
70
73
  attributes = {
71
74
  'messaging.system' => 'que',
72
75
  'messaging.destination_kind' => 'queue',
73
- 'messaging.operation' => 'send',
76
+ 'messaging.operation' => 'publish',
74
77
  'messaging.destination' => job_attrs[:queue] || 'default',
75
78
  'messaging.que.job_class' => job_attrs[:job_class],
76
79
  'messaging.que.priority' => job_attrs[:priority] || 100
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Que
10
- VERSION = '0.6.1'
10
+ VERSION = '0.7.0'
11
11
  end
12
12
  end
13
13
  end
@@ -15,5 +15,5 @@ module OpenTelemetry
15
15
  end
16
16
  end
17
17
 
18
- require_relative './que/instrumentation'
19
- require_relative './que/version'
18
+ require_relative 'que/instrumentation'
19
+ require_relative 'que/version'
@@ -19,4 +19,4 @@ module OpenTelemetry
19
19
  end
20
20
  end
21
21
 
22
- require_relative './instrumentation/que'
22
+ require_relative 'instrumentation/que'
@@ -4,4 +4,4 @@
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
- require_relative './opentelemetry/instrumentation'
7
+ require_relative 'opentelemetry/instrumentation'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-que
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.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-06-05 00:00:00.000000000 Z
11
+ date: 2023-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.0
61
+ version: '2.5'
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: 2.2.0
68
+ version: '2.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.50.2
187
+ version: 1.56.1
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 1.50.2
194
+ version: 1.56.1
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -220,20 +220,6 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0.9'
223
- - !ruby/object:Gem::Dependency
224
- name: yard-doctest
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: 0.1.6
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: 0.1.6
237
223
  description: Que instrumentation for the OpenTelemetry framework
238
224
  email:
239
225
  - cncf-opentelemetry-contributors@lists.cncf.io
@@ -258,10 +244,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
258
244
  licenses:
259
245
  - Apache-2.0
260
246
  metadata:
261
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.6.1/file/CHANGELOG.md
247
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.7.0/file/CHANGELOG.md
262
248
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/que
263
249
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
264
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.6.1
250
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.7.0
265
251
  post_install_message:
266
252
  rdoc_options: []
267
253
  require_paths: