opentelemetry-instrumentation-delayed_job 0.22.0 → 0.22.1

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: b2ab91bef0edbad5972cc66bcf46caa3827b677e02bff35488b6fefbb1a93358
4
- data.tar.gz: 5c964be0f2d522a8b026a54e12c18f1e1bb494f1db788265b92bd4cc1c7f468f
3
+ metadata.gz: 3add19d82e680cc1fa44c8c109cf9110d7dfad8c8e0605138ba2b5d96a41f1bf
4
+ data.tar.gz: 2e87d573c6ee02a8e2c6bd8ae2c548a66143b1ff8fee2099f5c9820cde73d1f6
5
5
  SHA512:
6
- metadata.gz: 8afe27fb24500fe070a52a7529e0c10469b774b33c56e99976b0884906567b4119f750b194e4b89cdc5ac7c4f7fd4085097d3150c4e89231f6040aa1a9366012
7
- data.tar.gz: 2143f25baca7cab3c8b9cd42d5b92a5547d0f9bd683aac19872289c8ead34111a9b576775a818d57b9e77fa7ffbbf0d0e9ef28ce22155154bda4d1254f7d49c9
6
+ metadata.gz: e8bcadf8a75d004adf5930ec88dfffaa8fc6271abc2ede5b2c03de874e59b1d2d4d9168aff8d215d6c31287925da06f530940ea1b42d63b75f147c1abe5b01a3
7
+ data.tar.gz: eeb2d0a3620b9a29ae0e7951a3ca9b973d620d1cd81055e5e2b82ac9c1daa1cee1fa4ca34e140f29f2413c0c022e37747298d80d03b14c0d95ca823c98a25834
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-delayed_job
2
2
 
3
+ ### v0.22.1 / 2023-11-23
4
+
5
+ * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
6
+
3
7
  ### v0.22.0 / 2023-10-16
4
8
 
5
9
  * BREAKING CHANGE: Drop DelayedJob ActiveRecord in Tests
@@ -14,7 +14,7 @@ module OpenTelemetry
14
14
  class TracerPlugin < Delayed::Plugin
15
15
  class << self
16
16
  def instrument_enqueue(job, &block)
17
- return block.call(job) unless enabled?
17
+ return yield(job) unless enabled?
18
18
 
19
19
  attributes = build_attributes(job)
20
20
  attributes['messaging.operation'] = 'publish'
@@ -28,7 +28,7 @@ module OpenTelemetry
28
28
  end
29
29
 
30
30
  def instrument_invoke(job, &block)
31
- return block.call(job) unless enabled?
31
+ return yield(job) unless enabled?
32
32
 
33
33
  attributes = build_attributes(job)
34
34
  attributes['messaging.delayed_job.attempts'] = job.attempts if job.attempts
@@ -83,8 +83,10 @@ module OpenTelemetry
83
83
  end
84
84
 
85
85
  callbacks do |lifecycle|
86
+ # rubocop:disable Performance/MethodObjectAsBlock
86
87
  lifecycle.around(:enqueue, &method(:instrument_enqueue))
87
88
  lifecycle.around(:invoke_job, &method(:instrument_invoke))
89
+ # rubocop:enable Performance/MethodObjectAsBlock
88
90
  end
89
91
  end
90
92
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module DelayedJob
10
- VERSION = '0.22.0'
10
+ VERSION = '0.22.1'
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-delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
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-10-16 00:00:00.000000000 Z
11
+ date: 2023-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 1.56.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-performance
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.19.1
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.19.1
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: simplecov
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -227,10 +241,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
227
241
  licenses:
228
242
  - Apache-2.0
229
243
  metadata:
230
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-delayed_job/0.22.0/file/CHANGELOG.md
244
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-delayed_job/0.22.1/file/CHANGELOG.md
231
245
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/delayed_job
232
246
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
233
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-delayed_job/0.22.0
247
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-delayed_job/0.22.1
234
248
  post_install_message:
235
249
  rdoc_options: []
236
250
  require_paths: