opentelemetry-instrumentation-excon 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: 5eb18983acdca816474316335649864b406dcc87f4fa127616ba634f320b1ed0
4
- data.tar.gz: 7f773a173d3c97df4baef6ffd084ffc58f93801de32f3d11509b6d3c7d30d635
3
+ metadata.gz: e3be9318b6bc29c5b7642f9bf2b71c42caf4c8539886337f200bf80400b5f1c2
4
+ data.tar.gz: d93eb3de2d82bc19d181d791536b6df8cbdab2d5fb77ce1f3deb28739e76a675
5
5
  SHA512:
6
- metadata.gz: 2d49fb540eaeb81f3323ec0363ba3cea3baebbd75394ed910b764acdc0da82921050facbc283098e81c93689eff100ee6d0e6c825f4dca9fd710ed6582e64d3b
7
- data.tar.gz: a4ce004977099c872cf15ba34554823e2f32ac9c29f516e5b0e81da11f788af85f13d38e65ebcd77731e7c716ea08aefb1a2b8a826553fa8be9aebfb8d0520d0
6
+ metadata.gz: 52f9e1d10139168aa70485e944887added67bd2938c4865122f8f58956e17a88127d49fd280719de0e071bd98b2d2177a7825ed7e3c4c849875b460b397e0676
7
+ data.tar.gz: 1909b875dcabe6f2a293c854dbc151f544dcad241d9c44a915cba5d038766ee613e2c49bf19f5a722c64d0f4783db1a268911d345d25ec6de7d6e6262d062146
data/CHANGELOG.md CHANGED
@@ -1,14 +1,33 @@
1
1
  # Release History: opentelemetry-instrumentation-excon
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: Excon instrumentation accepts peer service config attribute.
6
- * FIXED: Refactor propagators to add #fields
24
+ * ADDED: Excon 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: Example scripts now reference local common lib
11
- * DOCS: Replace Gitter with GitHub Discussions
29
+ * FIXED: Example scripts now reference local common lib
30
+ * DOCS: Replace Gitter with GitHub Discussions
12
31
 
13
32
  ### v0.15.0 / 2021-02-18
14
33
 
@@ -16,9 +35,9 @@
16
35
 
17
36
  ### v0.14.0 / 2021-02-03
18
37
 
19
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
38
+ * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
20
39
 
21
- * ADDED: Replace getter and setter callables and remove rack specific propagators
40
+ * ADDED: Replace getter and setter callables and remove rack specific propagators
22
41
 
23
42
  ### v0.13.0 / 2021-01-29
24
43
 
@@ -30,7 +49,7 @@
30
49
 
31
50
  ### v0.11.0 / 2020-12-11
32
51
 
33
- * FIXED: Copyright comments to not reference year
52
+ * FIXED: Copyright comments to not reference year
34
53
 
35
54
  ### v0.10.0 / 2020-12-03
36
55
 
@@ -38,21 +57,21 @@
38
57
 
39
58
  ### v0.9.0 / 2020-11-27
40
59
 
41
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
60
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
42
61
 
43
- * ADDED: Add timeout for force_flush and shutdown
62
+ * ADDED: Add timeout for force_flush and shutdown
44
63
 
45
64
  ### v0.8.0 / 2020-10-27
46
65
 
47
- * BREAKING CHANGE: Move context/span methods to Trace module
48
- * BREAKING CHANGE: Remove 'canonical' from status codes
66
+ * BREAKING CHANGE: Move context/span methods to Trace module
67
+ * BREAKING CHANGE: Remove 'canonical' from status codes
49
68
 
50
- * FIXED: Move context/span methods to Trace module
51
- * FIXED: Remove 'canonical' from status codes
69
+ * FIXED: Move context/span methods to Trace module
70
+ * FIXED: Remove 'canonical' from status codes
52
71
 
53
72
  ### v0.7.0 / 2020-10-07
54
73
 
55
- * DOCS: Standardize toplevel docs structure and readme
74
+ * DOCS: Standardize toplevel docs structure and readme
56
75
 
57
76
  ### v0.6.0 / 2020-09-10
58
77
 
@@ -71,7 +71,7 @@ module OpenTelemetry
71
71
 
72
72
  private
73
73
 
74
- def handle_response(datum) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
74
+ def handle_response(datum) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity:
75
75
  if datum.key?(:otel_span)
76
76
  datum[:otel_span].tap do |span|
77
77
  return span if span.end_timestamp
@@ -79,18 +79,10 @@ module OpenTelemetry
79
79
  if datum.key?(:response)
80
80
  response = datum[:response]
81
81
  span.set_attribute('http.status_code', response[:status])
82
- span.set_attribute('http.status_text', response[:reason_phrase])
83
- span.status = OpenTelemetry::Trace::Status.http_to_status(
84
- response[:status]
85
- )
82
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response[:status].to_i)
86
83
  end
87
84
 
88
- if datum.key?(:error)
89
- span.status = OpenTelemetry::Trace::Status.new(
90
- OpenTelemetry::Trace::Status::ERROR,
91
- description: "Request has failed: #{datum[:error]}"
92
- )
93
- end
85
+ span.status = OpenTelemetry::Trace::Status.error("Request has failed: #{datum[:error]}") if datum.key?(:error)
94
86
 
95
87
  span.finish
96
88
  datum.delete(:otel_span)
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Excon
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-excon
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
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.0'
117
+ version: '1.0'
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: '0.0'
124
+ version: '1.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop
127
127
  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-excon/v0.17.0/file.CHANGELOG.html
216
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.2/file.CHANGELOG.html
217
217
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/excon
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-excon/v0.17.0
219
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.2
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: