opentelemetry-instrumentation-restclient 0.22.7 → 0.23.0
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: a7a7ea2fa5b32e2fd675d31c589c154b60c5a5802688e5ef5abbe48ba4ffce34
|
4
|
+
data.tar.gz: b3f697b57ce7dfc4c968d5b75ea7753bd3f403416de3b18c3f5843022121e9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 217dda071c7a736e6edcbec050a57f9e2911ae3935146b569acd5bfe12907e2566eaffdd0aaf7599fc08ae7df7e39c9786e906ccd953c445c0fe9f56b9f54e58
|
7
|
+
data.tar.gz: ac6018b030a697e8291f12ab2d430eddbd3d88f24c1be774b3533a4e69908aeba7700fd8bf832fc9d150e0ac0a47fc36d4c329d9ea78bbcaa7306323adf6549d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-restclient
|
2
2
|
|
3
|
+
### v0.23.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.22.8 / 2024-11-26
|
10
|
+
|
11
|
+
* CHANGED: Performance Freeze all range objects #1222
|
12
|
+
|
3
13
|
### v0.22.7 / 2024-07-23
|
4
14
|
|
5
15
|
* DOCS: Add cspell to CI
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ The OpenTelemetry RestClient gem is a community maintained instrumentation for t
|
|
6
6
|
|
7
7
|
Install the gem using:
|
8
8
|
|
9
|
-
```
|
9
|
+
```console
|
10
10
|
gem install opentelemetry-instrumentation-restclient
|
11
11
|
```
|
12
12
|
|
@@ -34,7 +34,7 @@ end
|
|
34
34
|
|
35
35
|
The `opentelemetry-instrumentation-restclient` 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
|
|
@@ -46,4 +46,5 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
|
|
46
46
|
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
|
47
47
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
48
48
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
49
|
+
[slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
|
49
50
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -10,6 +10,9 @@ module OpenTelemetry
|
|
10
10
|
module Patches
|
11
11
|
# Module to prepend to RestClient::Request for instrumentation
|
12
12
|
module Request
|
13
|
+
# Constant for the HTTP status range
|
14
|
+
HTTP_STATUS_SUCCESS_RANGE = (100..399)
|
15
|
+
|
13
16
|
def execute(&block)
|
14
17
|
trace_request do |_span|
|
15
18
|
super
|
@@ -49,13 +52,12 @@ module OpenTelemetry
|
|
49
52
|
# If so, add additional attributes.
|
50
53
|
if response.is_a?(::RestClient::Response)
|
51
54
|
span.set_attribute('http.status_code', response.code)
|
52
|
-
span.status = OpenTelemetry::Trace::Status.error unless
|
55
|
+
span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(response.code.to_i)
|
53
56
|
end
|
54
57
|
end
|
55
58
|
rescue ::RestClient::ExceptionWithResponse => e
|
56
59
|
span.set_attribute('http.status_code', e.http_code)
|
57
|
-
span.status = OpenTelemetry::Trace::Status.error unless
|
58
|
-
|
60
|
+
span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(e.http_code.to_i)
|
59
61
|
raise e
|
60
62
|
ensure
|
61
63
|
span.finish
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-restclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.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
|
@@ -114,28 +114,28 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.69.1
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.69.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.23.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:
|
138
|
+
version: 1.23.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: simplecov
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 3.24.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: 3.24.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,11 +199,11 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
199
199
|
licenses:
|
200
200
|
- Apache-2.0
|
201
201
|
metadata:
|
202
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.
|
202
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.23.0/file/CHANGELOG.md
|
203
203
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/restclient
|
204
204
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
205
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.
|
206
|
-
post_install_message:
|
205
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-restclient/0.23.0
|
206
|
+
post_install_message:
|
207
207
|
rdoc_options: []
|
208
208
|
require_paths:
|
209
209
|
- lib
|
@@ -211,15 +211,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
211
|
requirements:
|
212
212
|
- - ">="
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '3.
|
214
|
+
version: '3.1'
|
215
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
216
|
requirements:
|
217
217
|
- - ">="
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
222
|
-
signing_key:
|
221
|
+
rubygems_version: 3.3.27
|
222
|
+
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: REST Client instrumentation for the OpenTelemetry framework
|
225
225
|
test_files: []
|