opentelemetry-instrumentation-http_client 0.22.7 → 0.22.8

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: 97a6c84252bb500f2425393422fa4f6a176b7ed7b76be4de48c516a8cd4b17d5
4
+ data.tar.gz: e48427204062e986d1d673fca8c06f0527ed6f1058a06776082f94c0a7ee39a3
5
5
  SHA512:
6
- metadata.gz: b3d9aff1238cb9c4920e55819a08079378142b7f219859319fcdfc24d79da4c7bbfe05f8cd1543788c93d385cebec17b426f5f0bad4abddea4f4de6d9e57dd01
7
- data.tar.gz: 2a07b2687d86e1f270d40b401fd4a7528cfd30c4d8dc20f8f856e880cf1d890e23f7695726ed79862d8d623fd94062658a35be6fadb8a999cea8feb8c9f80269
6
+ metadata.gz: 246d475f67e3f03e0acc6766dcf3cfae8be8133141e3d9df83cfd4189f05868a3a62e0a6be7bde383b2d5726621feb95dc48aab0f5575c529124d76f4e22778c
7
+ data.tar.gz: 168d5a7fbe4b0490c1a0142203cb0b156d240fa28d868ff4149419200304ce16469dc25adeff99461b1351de37bbf83c819c0e908d377754fe60746865767708
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-http_client
2
2
 
3
+ ### v0.22.8 / 2024-11-26
4
+
5
+ * CHANGED: Performance Freeze all range objects #1222
6
+
3
7
  ### v0.22.7 / 2024-07-23
4
8
 
5
9
  * 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.22.8'
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.22.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.65.0
131
+ version: 1.68.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: 1.65.0
138
+ version: 1.68.0
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,10 +214,10 @@ 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.22.8/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
220
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http_client/0.22.8
221
221
  post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths: