opentelemetry-instrumentation-excon 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: 34dbb6b694ac101b0bd1e7930071cc32d83a5b7a381aa427c28b4d47e3ce6928
4
- data.tar.gz: 94428a2dbaef75de4db8e8a02a5d5665a24dadff892d669efe5bd644e957f877
3
+ metadata.gz: 92dc44bcd531e9487cca4fb9f266995747f192aacbbbbb615bb544e42e0881f5
4
+ data.tar.gz: 227a59c14ceed28092ec248a0fe9fe23a421a0f59f1f74108a84a133d0be5bc9
5
5
  SHA512:
6
- metadata.gz: 2f1109aeef1b71f319e4a5a4d3e4fb19822ea059aaeb4d864ee7e33f53c92e84a189f2b472fe897e1ec3153a72f2e732287846bb8f9ddbf4cb4a2421e55e7606
7
- data.tar.gz: b2238516cbc2daf5d462183a34d8170b829cced1e3c828f4fc26f4aa38b60cf3156cffa5b9a810f717e9838c9333a6311e3c38cb948334a63b18cc8e4ffcf3ee
6
+ metadata.gz: 8ed88ea6c92cff6e26c8093b776366171dae82f9eaa864c62395ca900401996701e71ea0f6f2d919b2ad32ee00d8a99d464152217a3252fa45ba6a00b3a6175c
7
+ data.tar.gz: 592c2f01fc0ce2bcaf3402f560ababa2cd497693d8a8ca76fa37a8957c2ad92819884c1e946db780b155dc011e6b22ae7354224cd9df53a32d05695ffed2fe2c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release History: opentelemetry-instrumentation-excon
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
@@ -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,17 +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.status = OpenTelemetry::Trace::Status.http_to_status(
83
- response[:status]
84
- )
82
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response[:status].to_i)
85
83
  end
86
84
 
87
- if datum.key?(:error)
88
- span.status = OpenTelemetry::Trace::Status.new(
89
- OpenTelemetry::Trace::Status::ERROR,
90
- description: "Request has failed: #{datum[:error]}"
91
- )
92
- end
85
+ span.status = OpenTelemetry::Trace::Status.error("Request has failed: #{datum[:error]}") if datum.key?(:error)
93
86
 
94
87
  span.finish
95
88
  datum.delete(:otel_span)
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Excon
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-excon
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
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.0.rc1
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: 1.0.0.rc1
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.18.0/file.CHANGELOG.html
216
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.3/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.18.0
219
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.3
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: