opentelemetry-instrumentation-httpx 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +4 -3
- data/lib/opentelemetry/instrumentation/httpx/plugin.rb +4 -1
- data/lib/opentelemetry/instrumentation/httpx/version.rb +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f48b37a6804e254fb9d9b7a6e039410d332be2652460c17574be592ac501283c
|
4
|
+
data.tar.gz: df74d2c9904a866aec5b33947ad9acef4efb147630cd28f7ad7716e0a41ad115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81c4c857388e3d9784d9016d7d6726ce863c8672aeaf8d3f3b79da244c988fd5e0fe876fadca68743f4d8a3239747f8f7850475b88bd8360ec1dfa655aea002f
|
7
|
+
data.tar.gz: 74de494374914328be9861f8f32191609c0931f0e295afb41dc4fb653716d4bf419fd5fa140a0ca598f0a276d173de4598528ec44f2896da32fdeb0e76c8cebc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-httpx
|
2
2
|
|
3
|
+
### v0.2.0 / 2025-01-16
|
4
|
+
|
5
|
+
* BREAKING CHANGE: Set minimum supported version to Ruby 3.1
|
6
|
+
|
7
|
+
* ADDED: Set minimum supported version to Ruby 3.1
|
8
|
+
|
9
|
+
### v0.1.3 / 2024-11-26
|
10
|
+
|
11
|
+
* CHANGED: Performance Freeze all range objects #1222
|
12
|
+
|
3
13
|
### v0.1.2 / 2024-04-30
|
4
14
|
|
5
15
|
* 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
|
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
|
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
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.23.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.23.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: appraisal
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,28 +142,28 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.69.1
|
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:
|
152
|
+
version: 1.69.1
|
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:
|
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:
|
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:
|
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:
|
194
|
+
version: 3.24.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: yard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,11 +227,11 @@ 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.
|
230
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.2.0/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.
|
234
|
-
post_install_message:
|
233
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-httpx/0.2.0
|
234
|
+
post_install_message:
|
235
235
|
rdoc_options: []
|
236
236
|
require_paths:
|
237
237
|
- lib
|
@@ -239,15 +239,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
239
|
requirements:
|
240
240
|
- - ">="
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version: '3.
|
242
|
+
version: '3.1'
|
243
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
244
|
requirements:
|
245
245
|
- - ">="
|
246
246
|
- !ruby/object:Gem::Version
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
250
|
-
signing_key:
|
249
|
+
rubygems_version: 3.3.27
|
250
|
+
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: HTTPX instrumentation for the OpenTelemetry framework
|
253
253
|
test_files: []
|