opentelemetry-instrumentation-httpx 0.1.2 → 0.1.3

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: a3ddf8c790d56848a8d7e5e46760b15fd1bd7c52dfaecac1f1ea1068eacb0da7
4
- data.tar.gz: da38c91e6f2baec70824f727871070463f5e40ecdf06f1a014b00fe799fc528d
3
+ metadata.gz: d431fb8d68e7dac8418b4c97e4168a6524ce5d6a456f49707bd3d4dc98c9a4de
4
+ data.tar.gz: 396bbb2aa7f35b7a2794fac329dea3ce73ec25a0fc9f6d959ff19027340d38e3
5
5
  SHA512:
6
- metadata.gz: a2793304c703ae77d1dc3dc41861b7d53935e07d271d7f0b0aa90ad88121598e586fb072f4e578feab3100e21200b01c71c8e9ddd1b53ff8b8ceb1e4858bf74f
7
- data.tar.gz: 2eb2bcbd0a8cfd9e2c94377a9b7806b195ce52eac870f9d07ba1097059faa5b994bb312c8e7711b98ea788275151f7553618e9553f3b935cf3439d0772f3d3d7
6
+ metadata.gz: 9d718f2c0150e963c3a14bd00f837dc85e6507543cd481c7ac7f96217f4d0b8a6e33582be1760b459b1d14765ba05a1b8759fb5d223b9a1c662fedee8f451a60
7
+ data.tar.gz: d211946179b4d99c02d88abddb6fd20ddebd9e229aee3b114a40352df6988a8ec13318f8c305403433e018a1ee6d1fbb362f64990e1e56887f36decb17cd8df9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-httpx
2
2
 
3
+ ### v0.1.3 / 2024-11-26
4
+
5
+ * CHANGED: Performance Freeze all range objects #1222
6
+
3
7
  ### v0.1.2 / 2024-04-30
4
8
 
5
9
  * FIXED: Bundler conflict warnings
data/README.md CHANGED
@@ -6,7 +6,7 @@ The HTTPX instrumentation is a community-maintained instrumentation for the [HTT
6
6
 
7
7
  Install the gem using:
8
8
 
9
- ```
9
+ ```console
10
10
  gem install opentelemetry-instrumentation-httpx
11
11
  ```
12
12
 
@@ -34,16 +34,17 @@ end
34
34
 
35
35
  The `opentelemetry-instrumentation-httpx` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
36
36
 
37
- 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].
37
+ 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].
38
38
 
39
39
  ## License
40
40
 
41
41
  The `opentelemetry-instrumentation-httpx` gem is distributed under the Apache 2.0 license. See [LICENSE][license-github] for more information.
42
42
 
43
- [http-home]: https://gitlab.com/os85/httpx
44
43
  [bundler-home]: https://bundler.io
45
44
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
46
45
  [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
47
46
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
48
47
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
48
+ [slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
49
49
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
50
+ [httpx-home]: https://github.com/HoneyryderChuck/httpx
@@ -11,6 +11,9 @@ module OpenTelemetry
11
11
  # Instruments around HTTPX's request/response lifecycle in order to generate
12
12
  # an OTEL trace.
13
13
  class RequestTracer
14
+ # Constant for the HTTP status range
15
+ HTTP_STATUS_SUCCESS_RANGE = (100..399)
16
+
14
17
  def initialize(request)
15
18
  @request = request
16
19
  end
@@ -54,7 +57,7 @@ module OpenTelemetry
54
57
  @span.status = Trace::Status.error("Unhandled exception of type: #{response.error.class}")
55
58
  else
56
59
  @span.set_attribute(OpenTelemetry::SemanticConventions::Trace::HTTP_STATUS_CODE, response.status)
57
- @span.status = Trace::Status.error unless (100..399).cover?(response.status)
60
+ @span.status = Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(response.status)
58
61
  end
59
62
 
60
63
  OpenTelemetry::Context.detach(@trace_token) if @trace_token
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module HTTPX
10
- VERSION = '0.1.2'
10
+ VERSION = '0.1.3'
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-httpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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-04-30 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.62'
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.62'
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
@@ -227,10 +227,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
227
227
  licenses:
228
228
  - Apache-2.0
229
229
  metadata:
230
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.2/file/CHANGELOG.md
230
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.3/file/CHANGELOG.md
231
231
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/http
232
232
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
233
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.2
233
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.3
234
234
  post_install_message:
235
235
  rdoc_options: []
236
236
  require_paths: