opentelemetry-instrumentation-http 0.23.4 → 0.23.5

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: 10f38d6e064dbbb2d379eb494acc21f7e0d66cafa91fb42e5d7c2a77e565efbf
4
- data.tar.gz: a1d480edcc59f4c1a694354f32f3c3a352e55d0a570ff7fd900695c40b885877
3
+ metadata.gz: b044de6092ac591144450d0632775c5f605c27a9b7e0b58fa966008360ad7c6a
4
+ data.tar.gz: 9a205ee24ea24d39e06dd880cb76213ba96a03f70ff45b0507fbcf1364f2f23b
5
5
  SHA512:
6
- metadata.gz: 0da928b2415433c1044b3d8082d4ce733767dce0be5d942453e01634962a7a02c47da63fcccbb599901d4cd4d812ccafcfb135952e7c3245c5e2fe63496d7e42
7
- data.tar.gz: 6d5bf22caccb2131e0f288a3c63f712761de879df5617ea7f2bda6dcf9a9245ed7c62c4a288622a5f6a323c1fca52b27ab0b2b88ddfa8c36394d8641f76aaba8
6
+ metadata.gz: 1c92c1feb8f46bdc9916de049d3e8a2e6bece014a64050a317dd7e4f7624947f4e70240c3e2375fb5dd9c6b6a1fa0dbf14297e7569afb5b54660acd0df850877
7
+ data.tar.gz: 986e64b3308b194912a2d9e4c6f75c430d6bafa871312980452869f30f3b7b5002878026a9411db29f1415db65a91d58705479fee303789040977c6b3054cb32
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-http
2
2
 
3
+ ### v0.23.5 / 2024-11-26
4
+
5
+ * CHANGED: Performance Freeze all range objects #1222
6
+
3
7
  ### v0.23.4 / 2024-07-23
4
8
 
5
9
  * DOCS: Add cspell to CI
data/README.md CHANGED
@@ -6,7 +6,7 @@ The HTTP instrumentation is a community-maintained instrumentation for the [HTTP
6
6
 
7
7
  Install the gem using:
8
8
 
9
- ```
9
+ ```console
10
10
  gem install opentelemetry-instrumentation-http
11
11
  ```
12
12
 
@@ -50,7 +50,7 @@ Example usage can be seen in the `./example/trace_demonstration.rb` file [here](
50
50
 
51
51
  The `opentelemetry-instrumentation-http` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
52
52
 
53
- 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].
53
+ 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].
54
54
 
55
55
  ## License
56
56
 
@@ -62,4 +62,5 @@ The `opentelemetry-instrumentation-http` gem is distributed under the Apache 2.0
62
62
  [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
63
63
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
64
64
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
65
+ [slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
65
66
  [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 HTTP::Client for instrumentation
12
12
  module Client
13
+ # Constant for the HTTP status range
14
+ HTTP_STATUS_SUCCESS_RANGE = (100..399)
15
+
13
16
  def perform(req, options)
14
17
  uri = req.uri
15
18
  request_method = req.verb.to_s.upcase
@@ -43,7 +46,7 @@ module OpenTelemetry
43
46
 
44
47
  status_code = response.status.to_i
45
48
  span.set_attribute('http.status_code', status_code)
46
- span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(status_code.to_i)
49
+ span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(status_code)
47
50
  end
48
51
 
49
52
  def create_request_span_name(request_method, request_path)
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module HTTP
10
- VERSION = '0.23.4'
10
+ VERSION = '0.23.5'
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
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.4
4
+ version: 0.23.5
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
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.65.0
145
+ version: 1.68.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.65.0
152
+ version: 1.68.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop-performance
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.20'
159
+ version: 1.23.0
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: '1.20'
166
+ version: 1.23.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '3.19'
187
+ version: 3.24.0
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: '3.19'
194
+ version: 3.24.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: yard
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -228,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
228
228
  licenses:
229
229
  - Apache-2.0
230
230
  metadata:
231
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http/0.23.4/file/CHANGELOG.md
231
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http/0.23.5/file/CHANGELOG.md
232
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/http
233
233
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
234
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http/0.23.4
234
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-http/0.23.5
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: