opentelemetry-instrumentation-restclient 0.18.0 → 0.19.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: 6353d3042a86d07a6b33ba1fa660394e33d5b789a03c7c6a06c85d033a83d920
4
- data.tar.gz: 9ee4bd48d10a9818666f2d56c521713a2539ea25cd1c99acfc18b712eb905f1e
3
+ metadata.gz: 4aee81684e85a225a393a4f00e3d2aa3a43112e9475322daec52fcb6d30aa197
4
+ data.tar.gz: 5ba6a9fd9c146488a2cef7790b010eabfa2cd7dbbff278d62e2194fd1763bb1b
5
5
  SHA512:
6
- metadata.gz: 941be2379538b86a5195a9d600645131365a86f080c1abcadf34f6f9c6adbe2feef924ba453df43224e1eb24051c022b177161d131c673ba074cf79c1248c579
7
- data.tar.gz: fb0031ef93b1ec99ba09f8bca367363699987531fd6911dc6e56d4e1b50dabe883c419be65258fa8736483899120f60dc2bb952d4426ff599be8021488cc97c7
6
+ metadata.gz: 304cad30e5342e87489bae3b53938444c56096ad2bc63960650fbfc1bc2dfe95dd1795850476132c6afc0d0867410924bf8af80ff602dcfc450753d2a34f32cd
7
+ data.tar.gz: 9fe481d5ad7f4f3482456eb25dbda746b66677eca5685b98066046f536cfd4b5014900a4f98272a61d4a77f10b76898a89a321f477eb6ada2b3653bc04d5dda7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History: opentelemetry-instrumentation-restclient
2
2
 
3
+ ### v0.19.0 / 2021-06-23
4
+
5
+ * BREAKING CHANGE: Total order constraint on span.status=
6
+
7
+ * FIXED: Total order constraint on span.status=
8
+
3
9
  ### v0.18.0 / 2021-05-21
4
10
 
5
11
  * 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.0'
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.0
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-06-24 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.0.rc2
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.0.rc2
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.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.18.0
40
+ version: 0.19.0
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.18.1
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.18.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  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.0/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.0
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: