opentelemetry-instrumentation-restclient 0.17.0 → 0.19.2

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: 0e1c38763a3ab08222e8f320cf2db81814591705c5faf4ffcf46d8decaad8182
4
- data.tar.gz: 17c76748db8f2c272525350f513d66ce186a5e74bc3681b853b83d3850c55421
3
+ metadata.gz: 48fd27e49f7234baf6b31ae77e1277122d639639fda2deb196edf0cc3db4a7f3
4
+ data.tar.gz: d310f9eaa262e81356fb14ee589d82e6c8baec980f692cbca8e01886bbd530f9
5
5
  SHA512:
6
- metadata.gz: 2d1c9affb4bd9baddf43d2555f5ef5254a65af75342ca748522e114509320e07cba143785fd54321690831ac47dd0027cf093b3d981e1ca353468b38e5f5f91b
7
- data.tar.gz: d1d4337e6bd4d581f36021284d00e13eacdcda87f25a6fa56aa5b02a787170900ab2759b8e510b91a40ac36a2adc6a436859e5ee07e8e7318b4c76863313588f
6
+ metadata.gz: ef7fc3cd00c1678e92e0cd8a2f3b3ed2dcaf87541d7a3af307d195f914f09173fb0d667fd6e7d0dd2f02eef923211fd0918ab6327d7328091137c5d02c4f51dc
7
+ data.tar.gz: e39c3e67cebc55847ca174a85f69a8fc79bd421c432ddc769a7d24ed3f1b6ee2153ee4a60ec496f6466cfe4558736c3d712284bbdb72c5259051e001387cce8c
data/CHANGELOG.md CHANGED
@@ -1,15 +1,34 @@
1
1
  # Release History: opentelemetry-instrumentation-restclient
2
2
 
3
+ ### v0.19.2 / 2021-09-29
4
+
5
+ * (No significant changes)
6
+
7
+ ### v0.19.1 / 2021-08-12
8
+
9
+ * DOCS: Update docs to rely more on environment variable configuration
10
+
11
+ ### v0.19.0 / 2021-06-23
12
+
13
+ * BREAKING CHANGE: Total order constraint on span.status=
14
+
15
+ * FIXED: Total order constraint on span.status=
16
+
17
+ ### v0.18.0 / 2021-05-21
18
+
19
+ * ADDED: Updated API depedency for 1.0.0.rc1
20
+ * FIXED: Removed http.status_text attribute #750
21
+
3
22
  ### v0.17.0 / 2021-04-22
4
23
 
5
- * ADDED: RestClient instrumentation accepts peer service config attribute.
6
- * FIXED: Refactor propagators to add #fields
24
+ * ADDED: RestClient instrumentation accepts peer service config attribute.
25
+ * FIXED: Refactor propagators to add #fields
7
26
 
8
27
  ### v0.16.0 / 2021-03-17
9
28
 
10
- * FIXED: Remove passwords from http.url
11
- * FIXED: Example scripts now reference local common lib
12
- * DOCS: Replace Gitter with GitHub Discussions
29
+ * FIXED: Remove passwords from http.url
30
+ * FIXED: Example scripts now reference local common lib
31
+ * DOCS: Replace Gitter with GitHub Discussions
13
32
 
14
33
  ### v0.15.0 / 2021-02-18
15
34
 
@@ -17,9 +36,9 @@
17
36
 
18
37
  ### v0.14.0 / 2021-02-03
19
38
 
20
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
39
+ * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
21
40
 
22
- * ADDED: Replace getter and setter callables and remove rack specific propagators
41
+ * ADDED: Replace getter and setter callables and remove rack specific propagators
23
42
 
24
43
  ### v0.13.0 / 2021-01-29
25
44
 
@@ -31,7 +50,7 @@
31
50
 
32
51
  ### v0.11.0 / 2020-12-11
33
52
 
34
- * FIXED: Copyright comments to not reference year
53
+ * FIXED: Copyright comments to not reference year
35
54
 
36
55
  ### v0.10.0 / 2020-12-03
37
56
 
@@ -39,19 +58,19 @@
39
58
 
40
59
  ### v0.9.0 / 2020-11-27
41
60
 
42
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
61
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
43
62
 
44
- * ADDED: Add timeout for force_flush and shutdown
63
+ * ADDED: Add timeout for force_flush and shutdown
45
64
 
46
65
  ### v0.8.0 / 2020-10-27
47
66
 
48
- * BREAKING CHANGE: Move context/span methods to Trace module
67
+ * BREAKING CHANGE: Move context/span methods to Trace module
49
68
 
50
- * FIXED: Move context/span methods to Trace module
69
+ * FIXED: Move context/span methods to Trace module
51
70
 
52
71
  ### v0.7.0 / 2020-10-07
53
72
 
54
- * DOCS: Standardize toplevel docs structure and readme
73
+ * DOCS: Standardize toplevel docs structure and readme
55
74
 
56
75
  ### v0.6.0 / 2020-09-10
57
76
 
@@ -43,17 +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.set_attribute('http.status_text', ::RestClient::STATUSES[response.code])
47
- span.status = OpenTelemetry::Trace::Status.http_to_status(
48
- response.code
49
- )
46
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response.code.to_i)
50
47
  end
51
48
  end
52
49
  rescue ::RestClient::ExceptionWithResponse => e
53
50
  span.set_attribute('http.status_code', e.http_code)
54
- span.status = OpenTelemetry::Trace::Status.http_to_status(
55
- e.http_code
56
- )
51
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(e.http_code.to_i)
57
52
 
58
53
  raise e
59
54
  ensure
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module RestClient
10
- VERSION = '0.17.0'
10
+ VERSION = '0.19.2'
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.17.0
4
+ version: 0.19.2
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-04-23 00:00:00.000000000 Z
11
+ date: 2021-09-30 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: 0.17.0
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: 0.17.0
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.17.0
33
+ version: 0.19.2
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.17.0
40
+ version: 0.19.2
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.17.0
47
+ version: 0.18.3
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.17.0
54
+ version: 0.18.3
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: '0.0'
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: '0.0'
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.17.0/file.CHANGELOG.html
216
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.19.2/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.17.0
219
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.19.2
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: