opentelemetry-instrumentation-net_http 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: 8869a453b60d3ae8ff5092484b866df664855d983bd5b76f762e05db0c75e868
4
- data.tar.gz: 614d3f7776902b8ee2f484ff0a9aba64d48895446fe6996218db87d487bbf1b2
3
+ metadata.gz: 320a9bf6994b829d17005cf65a88a337a75d4f5e5d68d231fb988fb8b286d1df
4
+ data.tar.gz: 5e34887f6cb57889f8cad82070a5e6a7ec835bc24a9acbad1039ab911b09fa9a
5
5
  SHA512:
6
- metadata.gz: e4312a009225f1484a22704849d1aa2d19947cd82a1428073b6af82046c39c966749b2c7e2ee56131b247f664c0c9ceb72ba221b3e38fb4dd845c44711cb6c23
7
- data.tar.gz: '09754b5f4edf5736c441a118a491f2f2790ba2069c8c7e26056f1e42ebb3beb94d08b3a9c8a5a20495848cd78eaacf6d27e8c11be1ae6f4eeca51f0aa544572f'
6
+ metadata.gz: 10ab603db94a4ee55318719200a5728705499a1f9f6d4b96cb16436f8dc48ffffb6d55cab584d3d5a0a0ed978ae083aaf3944d7fd91256be8f3eedfaa6ab52cb
7
+ data.tar.gz: 369d5ffe810e2124a9a7f5c8aa38ad75177c520de1a5307b83c14a33fc5658ae6721496fb71999d6f1443d5e653e6323ec8eafaded04ed45faa91e4edfeae730
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
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
@@ -76,7 +84,7 @@
76
84
 
77
85
  ### v0.18.0 / 2021-05-21
78
86
 
79
- * ADDED: Updated API depedency for 1.0.0.rc1
87
+ * ADDED: Updated API dependency for 1.0.0.rc1
80
88
 
81
89
  ### v0.17.0 / 2021-04-22
82
90
 
@@ -126,7 +134,7 @@
126
134
  ### v0.7.0 / 2020-10-07
127
135
 
128
136
  * DOCS: Added documentation for net_http gem in instrumentation
129
- * DOCS: Standardize toplevel docs structure and readme
137
+ * DOCS: Standardize top-level docs structure and readme
130
138
 
131
139
  ### v0.6.0 / 2020-09-10
132
140
 
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.6'
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.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
@@ -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.6/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.6
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: