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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 320a9bf6994b829d17005cf65a88a337a75d4f5e5d68d231fb988fb8b286d1df
|
4
|
+
data.tar.gz: 5e34887f6cb57889f8cad82070a5e6a7ec835bc24a9acbad1039ab911b09fa9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10ab603db94a4ee55318719200a5728705499a1f9f6d4b96cb16436f8dc48ffffb6d55cab584d3d5a0a0ed978ae083aaf3944d7fd91256be8f3eedfaa6ab52cb
|
7
|
+
data.tar.gz: 369d5ffe810e2124a9a7f5c8aa38ad75177c520de1a5307b83c14a33fc5658ae6721496fb71999d6f1443d5e653e6323ec8eafaded04ed45faa91e4edfeae730
|
data/CHANGELOG.md
CHANGED
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
|
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
|
84
|
+
span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(status_code)
|
82
85
|
end
|
83
86
|
|
84
87
|
def tracer
|
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.
|
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-
|
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.
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
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.
|
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:
|