opentelemetry-instrumentation-httpx 0.1.1 → 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: 3168c203df612938145b418783e4254abce13d85fa7da5da118a8411678a3c47
4
- data.tar.gz: 763b11ead20d2a06ad9152585b35c69dcdcc4f143863ee5d277558578f7a3c64
3
+ metadata.gz: d431fb8d68e7dac8418b4c97e4168a6524ce5d6a456f49707bd3d4dc98c9a4de
4
+ data.tar.gz: 396bbb2aa7f35b7a2794fac329dea3ce73ec25a0fc9f6d959ff19027340d38e3
5
5
  SHA512:
6
- metadata.gz: 0f056cd5b97322bea9b8e8d1a5699a9834034769d08f8b3d9988cd4ee12d21ada841752ae38289cf3c3d118278b67354a3c438b9dfb383cb8fbd1893e8a04881
7
- data.tar.gz: 3c73f14179a9c6a932618a83589917ecbcfad8397296f00b6c63555e6822af86844a654bbf94322abaffe3dc5e0a6b0e107695aa9121f802b89152797e67ae62
6
+ metadata.gz: 9d718f2c0150e963c3a14bd00f837dc85e6507543cd481c7ac7f96217f4d0b8a6e33582be1760b459b1d14765ba05a1b8759fb5d223b9a1c662fedee8f451a60
7
+ data.tar.gz: d211946179b4d99c02d88abddb6fd20ddebd9e229aee3b114a40352df6988a8ec13318f8c305403433e018a1ee6d1fbb362f64990e1e56887f36decb17cd8df9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.1.2 / 2024-04-30
8
+
9
+ * FIXED: Bundler conflict warnings
10
+
3
11
  ### v0.1.1 / 2023-11-23
4
12
 
5
13
  * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
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.1'
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.1
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: 2023-11-23 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
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.4'
69
- - !ruby/object:Gem::Dependency
70
- name: httpx
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: minitest
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -156,28 +142,28 @@ dependencies:
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: 1.56.1
145
+ version: 1.68.0
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: 1.56.1
152
+ version: 1.68.0
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: rubocop-performance
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 1.19.1
159
+ version: 1.23.0
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: 1.19.1
166
+ version: 1.23.0
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: simplecov
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +184,14 @@ dependencies:
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: '3.19'
187
+ version: 3.24.0
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: '3.19'
194
+ version: 3.24.0
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: yard
211
197
  requirement: !ruby/object:Gem::Requirement
@@ -241,10 +227,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
241
227
  licenses:
242
228
  - Apache-2.0
243
229
  metadata:
244
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.1/file/CHANGELOG.md
230
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.3/file/CHANGELOG.md
245
231
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/http
246
232
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
247
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.1
233
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.1.3
248
234
  post_install_message:
249
235
  rdoc_options: []
250
236
  require_paths: