opentelemetry-instrumentation-restclient 0.18.0 → 0.19.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: 6353d3042a86d07a6b33ba1fa660394e33d5b789a03c7c6a06c85d033a83d920
4
- data.tar.gz: 9ee4bd48d10a9818666f2d56c521713a2539ea25cd1c99acfc18b712eb905f1e
3
+ metadata.gz: a17ffae1dca2645558d9eb285d11b9579f67004f0dca396a1b3cabda992c3d7b
4
+ data.tar.gz: d66358e42308a8f870bd6ea29b2eb246413d289dfd39f9eb282e6220c57133af
5
5
  SHA512:
6
- metadata.gz: 941be2379538b86a5195a9d600645131365a86f080c1abcadf34f6f9c6adbe2feef924ba453df43224e1eb24051c022b177161d131c673ba074cf79c1248c579
7
- data.tar.gz: fb0031ef93b1ec99ba09f8bca367363699987531fd6911dc6e56d4e1b50dabe883c419be65258fa8736483899120f60dc2bb952d4426ff599be8021488cc97c7
6
+ metadata.gz: 7fbd51ac07398777ced49dd73a8e6cfbe221224acb74ff1ceb4564d0eb75feddef45c6e684138333a7b656abd9aba19619fb68754d7791dbbc7d7aac60b3c50b
7
+ data.tar.gz: 8e532ef789102b662dcc551844d4b654e73a5dbf57a593ae039459be4eab91622aec51388a07cb9e2ff01e9862c5cfd046f81582a40429f149bfd74272a22410
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release History: opentelemetry-instrumentation-restclient
2
2
 
3
+ ### v0.19.3 / 2021-12-02
4
+
5
+ * (No significant changes)
6
+
7
+ ### v0.19.2 / 2021-09-29
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.19.1 / 2021-08-12
12
+
13
+ * DOCS: Update docs to rely more on environment variable configuration
14
+
15
+ ### v0.19.0 / 2021-06-23
16
+
17
+ * BREAKING CHANGE: Total order constraint on span.status=
18
+
19
+ * FIXED: Total order constraint on span.status=
20
+
3
21
  ### v0.18.0 / 2021-05-21
4
22
 
5
23
  * ADDED: Updated API depedency for 1.0.0.rc1
@@ -43,16 +43,12 @@ module OpenTelemetry
43
43
  # If so, add additional attributes.
44
44
  if response.is_a?(::RestClient::Response)
45
45
  span.set_attribute('http.status_code', response.code)
46
- span.status = OpenTelemetry::Trace::Status.http_to_status(
47
- response.code
48
- )
46
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response.code.to_i)
49
47
  end
50
48
  end
51
49
  rescue ::RestClient::ExceptionWithResponse => e
52
50
  span.set_attribute('http.status_code', e.http_code)
53
- span.status = OpenTelemetry::Trace::Status.http_to_status(
54
- e.http_code
55
- )
51
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(e.http_code.to_i)
56
52
 
57
53
  raise e
58
54
  ensure
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module RestClient
10
- VERSION = '0.18.0'
10
+ VERSION = '0.19.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-restclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.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: 2021-05-21 00:00:00.000000000 Z
11
+ date: 2021-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc1
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.rc1
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.0
33
+ version: 0.19.3
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.18.0
40
+ version: 0.19.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-base
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.18.0
47
+ version: 0.19.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.18.0
54
+ version: 0.19.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.0.0.rc1
103
+ version: '1.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.0.0.rc1
110
+ version: '1.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rest-client
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -213,10 +213,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
213
213
  licenses:
214
214
  - Apache-2.0
215
215
  metadata:
216
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.18.0/file.CHANGELOG.html
216
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.19.3/file.CHANGELOG.html
217
217
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/restclient
218
218
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
219
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.18.0
219
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.19.3
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: