opentelemetry-instrumentation-net_http 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: de83aba62d4494c2aa1e4f12f7d8c5fb758daf6217b5293d82fbbaabeb5fec01
4
- data.tar.gz: 9eafac3c13e31dd23a65fe5ecf0853789983cd859cbe74ba0e6c7cf33355f42d
3
+ metadata.gz: 320a9bf6994b829d17005cf65a88a337a75d4f5e5d68d231fb988fb8b286d1df
4
+ data.tar.gz: 5e34887f6cb57889f8cad82070a5e6a7ec835bc24a9acbad1039ab911b09fa9a
5
5
  SHA512:
6
- metadata.gz: 38a29a1aae62edbfa4a1f560021f7eaab4bc50d28c8b9c8556886fd5fec1261241963b801901bd3eeccf35c385dce94785e1491d6e71e3e8acef06f99d25d192
7
- data.tar.gz: d7efdc9665e748503c3a33fcf6a236f9df8d931419227775ad0dc471c6d2fee2682ae3e811481e87ea011fafa11cb0010e59b1134d977af9a8d12d8100353246
6
+ metadata.gz: 10ab603db94a4ee55318719200a5728705499a1f9f6d4b96cb16436f8dc48ffffb6d55cab584d3d5a0a0ed978ae083aaf3944d7fd91256be8f3eedfaa6ab52cb
7
+ data.tar.gz: 369d5ffe810e2124a9a7f5c8aa38ad75177c520de1a5307b83c14a33fc5658ae6721496fb71999d6f1443d5e653e6323ec8eafaded04ed45faa91e4edfeae730
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-net_http
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 OpenTelemetry Net::HTTP Ruby gem is a community maintained instrumentation f
6
6
 
7
7
  Install the gem using:
8
8
 
9
- ```
9
+ ```console
10
10
  gem install opentelemetry-instrumentation-net_http
11
11
  ```
12
12
 
@@ -38,7 +38,7 @@ An example of usage can be seen in [`example/net_http.rb`](https://github.com/op
38
38
 
39
39
  The `opentelemetry-instrumentation-net_http` 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 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
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
@@ -14,6 +14,9 @@ module OpenTelemetry
14
14
  HTTP_METHODS_TO_SPAN_NAMES = Hash.new { |h, k| h[k] = "HTTP #{k}" }
15
15
  USE_SSL_TO_SCHEME = { false => 'http', true => 'https' }.freeze
16
16
 
17
+ # Constant for the HTTP status range
18
+ HTTP_STATUS_SUCCESS_RANGE = (100..399)
19
+
17
20
  def request(req, body = nil, &block)
18
21
  # Do not trace recursive call for starting the connection
19
22
  return super unless started?
@@ -78,7 +81,7 @@ module OpenTelemetry
78
81
  status_code = response.code.to_i
79
82
 
80
83
  span.set_attribute(OpenTelemetry::SemanticConventions::Trace::HTTP_STATUS_CODE, status_code)
81
- span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(status_code.to_i)
84
+ span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(status_code)
82
85
  end
83
86
 
84
87
  def tracer
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Net
10
10
  module HTTP
11
- VERSION = '0.22.7'
11
+ VERSION = '0.22.8'
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-net_http
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
@@ -213,10 +213,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
213
213
  licenses:
214
214
  - Apache-2.0
215
215
  metadata:
216
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.7/file/CHANGELOG.md
216
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.8/file/CHANGELOG.md
217
217
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/net_http
218
218
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
219
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.7
219
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.8
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: