opentelemetry-instrumentation-restclient 0.22.1 → 0.22.3

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: c77b905dce3007883afa8fd06fd53b2a063f951ef97fc65b4112c2e39b7cee41
4
- data.tar.gz: 527a1421fc35865c315deb004c88bc1c9ce0b52afb65bd21b56ded729030a2f8
3
+ metadata.gz: a495aa1eba08a1d0702b90e5ab48daf213fcfaf84db54a34e8975972772853d0
4
+ data.tar.gz: 35df74566d4b5a663acf8d017f1a03b825babcfc589281f8690d280c422902d2
5
5
  SHA512:
6
- metadata.gz: 6dde2c495218df05b88b66f5d35e9f442f2360582e8a29fa884eec26db4ecec7d40270faa0d23b45437fb040ee4263705c7f50f31e15a62f698c0636a67df41c
7
- data.tar.gz: f4621c7b41921b91eeeb8d130877e76b0a98501e265e07d3d3ec3a330766528f0b0a14b03f1666f8ffe0932e89d5fd3c70f2d0f1bffaaedc8d39a1ee7d9efc14
6
+ metadata.gz: 9184c973bb62b34efc4ebf8a238790bfc6f514c5be621f97e6c05a4c80f63c6ba1aa2d793af915e0e9ec3c66e0acf9d3cfe0ddc5fdd5ae9516faf8da3e77d2f4
7
+ data.tar.gz: 66531e3ded7e893ea33e8d2a0c462fca1c6aeb4d46231684d441e6a04c9068d881ea1b1c904de53979e6ddec25d31b8744758044cc04e0c351dff0160ba8cc72
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-restclient
2
2
 
3
+ ### v0.22.3 / 2023-11-23
4
+
5
+ * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
6
+
7
+ ### v0.22.2 / 2023-07-21
8
+
9
+ * ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
10
+
3
11
  ### v0.22.1 / 2023-06-05
4
12
 
5
13
  * FIXED: Base config options
@@ -49,12 +49,12 @@ module OpenTelemetry
49
49
  # If so, add additional attributes.
50
50
  if response.is_a?(::RestClient::Response)
51
51
  span.set_attribute('http.status_code', response.code)
52
- span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response.code.to_i)
52
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(response.code.to_i)
53
53
  end
54
54
  end
55
55
  rescue ::RestClient::ExceptionWithResponse => e
56
56
  span.set_attribute('http.status_code', e.http_code)
57
- span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(e.http_code.to_i)
57
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(e.http_code.to_i)
58
58
 
59
59
  raise e
60
60
  ensure
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module RestClient
10
- VERSION = '0.22.1'
10
+ VERSION = '0.22.3'
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 './restclient/instrumentation'
19
- require_relative './restclient/version'
18
+ require_relative 'restclient/instrumentation'
19
+ require_relative 'restclient/version'
@@ -19,4 +19,4 @@ module OpenTelemetry
19
19
  end
20
20
  end
21
21
 
22
- require_relative './instrumentation/restclient'
22
+ require_relative 'instrumentation/restclient'
@@ -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-restclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.22.3
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-11-23 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.19.3
33
+ version: 0.20.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.19.3
40
+ version: 0.20.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-base
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -128,84 +128,84 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.1.0
131
+ version: '2.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.1.0
138
+ version: '2.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.50.2
145
+ version: 1.56.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.50.2
152
+ version: 1.56.1
153
153
  - !ruby/object:Gem::Dependency
154
- name: simplecov
154
+ name: rubocop-performance
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.17.1
159
+ version: 1.19.1
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.17.1
166
+ version: 1.19.1
167
167
  - !ruby/object:Gem::Dependency
168
- name: webmock
168
+ name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.7.6
173
+ version: 0.17.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 3.7.6
180
+ version: 0.17.1
181
181
  - !ruby/object:Gem::Dependency
182
- name: yard
182
+ name: webmock
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0.9'
187
+ version: '3.19'
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: '0.9'
194
+ version: '3.19'
195
195
  - !ruby/object:Gem::Dependency
196
- name: yard-doctest
196
+ name: yard
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.1.6
201
+ version: '0.9'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.1.6
208
+ version: '0.9'
209
209
  description: REST Client instrumentation for the OpenTelemetry framework
210
210
  email:
211
211
  - cncf-opentelemetry-contributors@lists.cncf.io
@@ -227,10 +227,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
227
227
  licenses:
228
228
  - Apache-2.0
229
229
  metadata:
230
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.22.1/file/CHANGELOG.md
230
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.22.3/file/CHANGELOG.md
231
231
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/restclient
232
232
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
233
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.22.1
233
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.22.3
234
234
  post_install_message:
235
235
  rdoc_options: []
236
236
  require_paths: