opentelemetry-instrumentation-excon 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: 34dbb6b694ac101b0bd1e7930071cc32d83a5b7a381aa427c28b4d47e3ce6928
4
- data.tar.gz: 94428a2dbaef75de4db8e8a02a5d5665a24dadff892d669efe5bd644e957f877
3
+ metadata.gz: 005e5b38cc8b566c7f6c78c5aec61d65e365cbb396a1e54ddec08c975a52473f
4
+ data.tar.gz: 9ccba23fad115249c377e6bcb8455d033bf36eea439ccab49b3c1385f8d8e4cc
5
5
  SHA512:
6
- metadata.gz: 2f1109aeef1b71f319e4a5a4d3e4fb19822ea059aaeb4d864ee7e33f53c92e84a189f2b472fe897e1ec3153a72f2e732287846bb8f9ddbf4cb4a2421e55e7606
7
- data.tar.gz: b2238516cbc2daf5d462183a34d8170b829cced1e3c828f4fc26f4aa38b60cf3156cffa5b9a810f717e9838c9333a6311e3c38cb948334a63b18cc8e4ffcf3ee
6
+ metadata.gz: 1f99beff1b5aac38dbb3cd8973ac31f1a82b30372d8696e08f986e362cbc31072ddfc071642878133da901afbf14ba7b346db41dcdbc8c08954abb6a7da42c67
7
+ data.tar.gz: d03898592edf5ad116e15de68b9afd0c73ff3e0ce5668c57b46d06a6c5e380f2e8dadda83f1259e25d83fba3f725e28d07deb2b223577a51f8f71d11b6f7249c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History: opentelemetry-instrumentation-excon
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
@@ -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.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-excon
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-excon/v0.18.0/file.CHANGELOG.html
216
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.0/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.0
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: