opentelemetry-instrumentation-http_client 0.22.7 → 0.23.0

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: 1b8915abbdc8be90a49fb63dacb02725f80a7e27467e538195a43367634c01c0
4
- data.tar.gz: 87b37ba8095cf4505b84f767fead96e6f5ec009c98557b9a7ccd983e1f950544
3
+ metadata.gz: fe6f37521f681de95b88a4fd17616376999983a898255f789d711404d54abe8a
4
+ data.tar.gz: 4425ea04967fc871beb86cdacd38b8be6bd407ed5ad3aa33147bf59114870448
5
5
  SHA512:
6
- metadata.gz: b3d9aff1238cb9c4920e55819a08079378142b7f219859319fcdfc24d79da4c7bbfe05f8cd1543788c93d385cebec17b426f5f0bad4abddea4f4de6d9e57dd01
7
- data.tar.gz: 2a07b2687d86e1f270d40b401fd4a7528cfd30c4d8dc20f8f856e880cf1d890e23f7695726ed79862d8d623fd94062658a35be6fadb8a999cea8feb8c9f80269
6
+ metadata.gz: 5bd10af4512744aac6014fb71164891fe862ceb0295c52117c333e903cda8a379112082cd979d483f0382e11795ae69d03e18b2c79c86c9744831a9543613dfa
7
+ data.tar.gz: f8b5be2ca54a5c14700ecbee6d3ca03b707582c3a8a427939f588f316886d2a835a6f0d79abd00d9a46cbaa2706eee9335eb326c2dfcabadabeedbf8f7a03258
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-instrumentation-http_client
2
2
 
3
+ ### v0.23.0 / 2025-01-16
4
+
5
+ * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
6
+
7
+ * ADDED: Set minimum supported version to Ruby 3.1
8
+
9
+ ### v0.22.8 / 2024-11-26
10
+
11
+ * CHANGED: Performance Freeze all range objects #1222
12
+
3
13
  ### v0.22.7 / 2024-07-23
4
14
 
5
15
  * DOCS: Add cspell to CI
data/README.md CHANGED
@@ -6,7 +6,7 @@ The HttpClient instrumentation is a community-maintained instrumentation for the
6
6
 
7
7
  Install the gem using:
8
8
 
9
- ```
9
+ ```console
10
10
  gem install opentelemetry-instrumentation-http_client
11
11
  ```
12
12
 
@@ -38,7 +38,7 @@ Example usage can be seen in the `./example/trace_demonstration.rb` file [here](
38
38
 
39
39
  The `opentelemetry-instrumentation-http_client` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
40
40
 
41
- The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us in [GitHub Discussions][discussions-url] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
41
+ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry Ruby special interest group (SIG). You can get involved by joining us on our [GitHub Discussions][discussions-url], [Slack Channel][slack-channel] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
42
42
 
43
43
  ## License
44
44
 
@@ -50,4 +50,5 @@ The `opentelemetry-instrumentation-http_client` gem is distributed under the Apa
50
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
+ [slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
53
54
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -10,6 +10,9 @@ module OpenTelemetry
10
10
  module Patches
11
11
  # Module to prepend to HTTPClient for instrumentation
12
12
  module Client
13
+ # Constant for the HTTP status range
14
+ HTTP_STATUS_SUCCESS_RANGE = (100..399)
15
+
13
16
  private
14
17
 
15
18
  def do_get_block(req, proxy, conn, &block)
@@ -42,7 +45,7 @@ module OpenTelemetry
42
45
  status_code = response.status_code.to_i
43
46
 
44
47
  span.set_attribute('http.status_code', status_code)
45
- span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(status_code.to_i)
48
+ span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(status_code)
46
49
  end
47
50
 
48
51
  def tracer
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module HttpClient
10
- VERSION = '0.22.7'
10
+ VERSION = '0.23.0'
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-http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.7
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2025-01-16 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.1
33
+ version: 0.23.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.22.1
40
+ version: 0.23.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.65.0
131
+ version: 1.69.1
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: 1.65.0
138
+ version: 1.69.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-performance
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.20'
145
+ version: 1.23.0
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.20'
152
+ version: 1.23.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '3.19'
173
+ version: 3.24.0
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.19'
180
+ version: 3.24.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: yard
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -214,11 +214,11 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
214
214
  licenses:
215
215
  - Apache-2.0
216
216
  metadata:
217
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http_client/0.22.7/file/CHANGELOG.md
217
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http_client/0.23.0/file/CHANGELOG.md
218
218
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/http_client
219
219
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
220
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http_client/0.22.7
221
- post_install_message:
220
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http_client/0.23.0
221
+ post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths:
224
224
  - lib
@@ -226,15 +226,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: '3.0'
229
+ version: '3.1'
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.2.33
237
- signing_key:
236
+ rubygems_version: 3.3.27
237
+ signing_key:
238
238
  specification_version: 4
239
239
  summary: HttpClient instrumentation for the OpenTelemetry framework
240
240
  test_files: []