opentelemetry-instrumentation-resque 0.2.0 → 0.3.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: 2777910db10f07a1619d4dd738ad47781993adcf6ec04b39871ba5f9938d3e10
4
- data.tar.gz: 91375a68814f48ff09e6dff971e547c05256070d796bfe5008e5071a320b7be4
3
+ metadata.gz: ef796cb15879b9402a9011bb7dcc141749218e5be48cb2a8f4738566cf2197aa
4
+ data.tar.gz: 69bad550cf1f1aa2599b14fcc35006081a5d4a8d7f781eb2267a487941e2af0f
5
5
  SHA512:
6
- metadata.gz: 12f736dbbda5154df40d616715fcbadf1b626b0915c0a57af078a4f337557f9977ba2c760c325bdf14b7e065e36271824d78ace50893649a51bc7d03636acfd4
7
- data.tar.gz: 3bac93d43ec997839a5b5bf22e3cef3f0a562b6f85a7283efe2496378b19af4f109082a99942d0206dabffa87d6bf5b684a86b79f0b1abefa8b2b740650b2e73
6
+ metadata.gz: bcdf36e15622c47911fda2a55943986379c4be855f5223df6a02132eb8562535a1e3765c636c7eb2327d88684b8e749d141d896689d14b598a4c3c9a35a4329d
7
+ data.tar.gz: c4984d73ad916d4b9361eda5be9ae860204189a2660ce4a98f13480a0bc25d40453dfc1bbf9fc431419836fc9f8b16bb7b6f27c221881f32e00d4ea0ea8c6c9e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-instrumentation-resque
2
2
 
3
+ ### v0.3.1 / 2023-01-14
4
+
5
+ * DOCS: Fix gem homepage
6
+ * DOCS: More gem documentation fixes
7
+
8
+ ### v0.3.0 / 2022-06-09
9
+
10
+ * Upgrading Base dependency version
11
+ * FIXED: Broken test file requirements
12
+
3
13
  ### v0.2.0 / 2022-05-02
4
14
 
5
15
  * ADDED: Validate Using Enums
data/README.md CHANGED
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  ## Examples
34
34
 
35
- Example usage can be seen in the `./example/trace_demonstration.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/resque/example/trace_demonstration.rb)
35
+ Example usage can be seen in the `./example/trace_demonstration.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/resque/example/trace_demonstration.rb)
36
36
 
37
37
  ## How can I get involved?
38
38
 
@@ -47,7 +47,7 @@ The `opentelemetry-instrumentation-resque` gem is distributed under the Apache 2
47
47
  [resque-home]: https://github.com/resque/resque
48
48
  [bundler-home]: https://bundler.io
49
49
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
50
- [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
50
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
51
51
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
52
52
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
53
53
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -10,12 +10,12 @@ module OpenTelemetry
10
10
  module Patches
11
11
  # Module to prepend to Resque::Job for instrumentation
12
12
  module ResqueJob
13
- def perform # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
13
+ def perform # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
14
14
  job_args = args || []
15
15
 
16
16
  # Check if the job is being wrapped by ActiveJob
17
17
  # before retrieving the job class name
18
- job_class = if payload_class_name == 'ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper' && job_args[0]&.is_a?(Hash)
18
+ job_class = if payload_class_name == 'ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper' && job_args[0].is_a?(Hash)
19
19
  job_args[0]['job_class']
20
20
  else
21
21
  payload_class_name
@@ -21,7 +21,7 @@ module OpenTelemetry
21
21
  def push(queue, item)
22
22
  # Check if the job is being wrapped by ActiveJob
23
23
  # before retrieving the job class name
24
- job_class = if item[:class] == 'ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper' && item[:args][0]&.is_a?(Hash)
24
+ job_class = if item[:class] == 'ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper' && item[:args][0].is_a?(Hash)
25
25
  item[:args][0]['job_class']
26
26
  else
27
27
  item[:class]
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Resque
10
- VERSION = '0.2.0'
10
+ VERSION = '0.3.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-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.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: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2023-01-14 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.20.0
33
+ version: 0.21.0
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.20.0
40
+ version: 0.21.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.17'
61
+ version: '2.4'
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: '1.17'
68
+ version: '2.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,42 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: '1.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.0'
96
+ version: '1.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: opentelemetry-test-helpers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 12.3.3
117
+ version: '13.0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: 12.3.3
124
+ version: '13.0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: resque
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +142,14 @@ dependencies:
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: 0.73.0
145
+ version: 1.41.1
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: 0.73.0
152
+ version: 1.41.1
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: simplecov
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -210,14 +224,14 @@ files:
210
224
  - lib/opentelemetry/instrumentation/resque/patches/resque_job.rb
211
225
  - lib/opentelemetry/instrumentation/resque/patches/resque_module.rb
212
226
  - lib/opentelemetry/instrumentation/resque/version.rb
213
- homepage: https://github.com/open-telemetry/opentelemetry-ruby
227
+ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
214
228
  licenses:
215
229
  - Apache-2.0
216
230
  metadata:
217
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-resque/v0.2.0/file.CHANGELOG.html
218
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/resque
219
- bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
220
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-resque/v0.2.0
231
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-resque/0.3.1/file/CHANGELOG.md
232
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/resque
233
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
234
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-resque/0.3.1
221
235
  post_install_message:
222
236
  rdoc_options: []
223
237
  require_paths:
@@ -226,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
240
  requirements:
227
241
  - - ">="
228
242
  - !ruby/object:Gem::Version
229
- version: 2.5.0
243
+ version: 2.6.0
230
244
  required_rubygems_version: !ruby/object:Gem::Requirement
231
245
  requirements:
232
246
  - - ">="