opentelemetry-instrumentation-que 0.6.1 → 0.6.2

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: 507bd603a8e7ada0c86e404ba48f81fe47bed3c85d4aa3fb525e0e338378379e
4
+ data.tar.gz: d655568f225942eff78b60e9887abcc488eb222ec83cc1f3242b8bb7da5b0045
5
5
  SHA512:
6
- metadata.gz: a7e4fe04be57b7e7a107ec61b621628b86f9099c44b2b57d8841b9f59852841dae8924919e5d04a6504c6b9aecda3f4d598a91434de9527a78e50ff54d1c753b
7
- data.tar.gz: b669ba2147651707f2067a7416aa0a773dbdd487bc3bd545a15ffd45d2c91ae13c398c9cd089153cba7534b93102f20d91493680311ae3ec484778c389ab9234
6
+ metadata.gz: 2035f012d42502683a292a70401992598653c086b0f63f3aa1f0fec9ca7354a0a4b9eb7595d7a31f39a7dbcad46c9f7993c13a1a8bbba66b05d22248b93596ff
7
+ data.tar.gz: a78c70912e558064700b52322bba995b2d4863ebe74f6966c07c7809c484ee7e867d1c7ed1dea25cdc041325f757f93f7bc1032b94f4a06de43f38370abd30d1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-que
2
2
 
3
+ ### v0.6.2 / 2023-08-07
4
+
5
+ * FIXED: Correctly set bulk_enqueue job options
6
+
3
7
  ### v0.6.1 / 2023-06-05
4
8
 
5
9
  * FIXED: Base config options
@@ -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
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Que
10
- VERSION = '0.6.1'
10
+ VERSION = '0.6.2'
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.6.2
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-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.50.2
187
+ version: 1.55.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.55.1
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -258,10 +258,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
258
258
  licenses:
259
259
  - Apache-2.0
260
260
  metadata:
261
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.6.1/file/CHANGELOG.md
261
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.6.2/file/CHANGELOG.md
262
262
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/que
263
263
  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
264
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-que/0.6.2
265
265
  post_install_message:
266
266
  rdoc_options: []
267
267
  require_paths: