opentelemetry-instrumentation-http_client 0.22.6 → 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: 043f984c62ec3fcab3a45d47871736027e9fdcc9522a461ddc14bb43490ca5db
4
- data.tar.gz: 2b30c26ba6af18f1b2fd70f9ad9d17d569035229215612f4978175d3ae0ee42c
3
+ metadata.gz: 97a6c84252bb500f2425393422fa4f6a176b7ed7b76be4de48c516a8cd4b17d5
4
+ data.tar.gz: e48427204062e986d1d673fca8c06f0527ed6f1058a06776082f94c0a7ee39a3
5
5
  SHA512:
6
- metadata.gz: 88e21f304ef98e19b0e37f9de34cab345ce1a10783c977bcf87b68818e282fe140b7a216e8133779483118a18ae6121a24c3667eba5fed92c138216183f7f415
7
- data.tar.gz: c90b70741bedbc151c874941a61f8ec55c62362d6287b359885b531347f621a86f38eeee096f968343fece4628a615903ba1c6c08d236d9c45b919f54df6f2bc
6
+ metadata.gz: 246d475f67e3f03e0acc6766dcf3cfae8be8133141e3d9df83cfd4189f05868a3a62e0a6be7bde383b2d5726621feb95dc48aab0f5575c529124d76f4e22778c
7
+ data.tar.gz: 168d5a7fbe4b0490c1a0142203cb0b156d240fa28d868ff4149419200304ce16469dc25adeff99461b1351de37bbf83c819c0e908d377754fe60746865767708
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.22.7 / 2024-07-23
8
+
9
+ * DOCS: Add cspell to CI
10
+
3
11
  ### v0.22.6 / 2024-06-18
4
12
 
5
13
  * FIXED: Relax otel common gem constraints
@@ -69,7 +77,7 @@
69
77
 
70
78
  ### v0.18.0 / 2021-05-21
71
79
 
72
- * ADDED: Updated API depedency for 1.0.0.rc1
80
+ * ADDED: Updated API dependency for 1.0.0.rc1
73
81
 
74
82
  ### v0.17.0 / 2021-04-22
75
83
 
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.6'
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.6
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-06-18 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.64.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.64.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.6/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.6
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: