opentelemetry-instrumentation-que 0.6.0 → 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: 3c1bf2b83d06c852eb0b413c4ee7436c914c9d85eb645e9e41abd14b74979634
4
- data.tar.gz: a78cdb0937c00ca29015c686de0e1103c21b5336249860b62af63a6548a0e91e
3
+ metadata.gz: 507bd603a8e7ada0c86e404ba48f81fe47bed3c85d4aa3fb525e0e338378379e
4
+ data.tar.gz: d655568f225942eff78b60e9887abcc488eb222ec83cc1f3242b8bb7da5b0045
5
5
  SHA512:
6
- metadata.gz: 98c0e7d9c79363cec480e256bd8a2a6efb2aa7f0121ba9fce25ad27c8b9710479e5c8e532b423a7782f7da377d4ed72dd8fc550896b1bc031cdc27f76a232e2f
7
- data.tar.gz: 67cc2f7e5d211062e5a1c695ebb241ca362155888626a1261e9119dd113064d2afab64ad4694d96d0f9c663169b75f85dcac2aa78c7f6830b1bd40ffe24b5dea
6
+ metadata.gz: 2035f012d42502683a292a70401992598653c086b0f63f3aa1f0fec9ca7354a0a4b9eb7595d7a31f39a7dbcad46c9f7993c13a1a8bbba66b05d22248b93596ff
7
+ data.tar.gz: a78c70912e558064700b52322bba995b2d4863ebe74f6966c07c7809c484ee7e867d1c7ed1dea25cdc041325f757f93f7bc1032b94f4a06de43f38370abd30d1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.6.1 / 2023-06-05
8
+
9
+ * FIXED: Base config options
10
+
3
11
  ### v0.6.0 / 2023-04-17
4
12
 
5
13
  * BREAKING CHANGE: Drop support for EoL Ruby 2.7
@@ -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.0'
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.0
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-04-17 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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.0
33
+ version: 0.22.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.22.0
40
+ version: 0.22.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activerecord
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.48.1
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.48.1
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.0/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.0
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: