opentelemetry-instrumentation-faraday 0.24.0 → 0.24.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: 30092c22c909e755e36b113d354e21781222fe1b93e1a41640dc1764a5bb4edd
4
- data.tar.gz: f33f7d607f8590cd320fe19dec748317b656214770379071a116e24084dad5c0
3
+ metadata.gz: 06d6bf056211f8343299b02515de3b0b3cd3781db18903ef5cb38eb8119c74ad
4
+ data.tar.gz: 6884f57969229c728c2a742142e5dec4ae4ebf1b609acd72ff6d42ef860edbc9
5
5
  SHA512:
6
- metadata.gz: 5f1b7344eb1522a38aff5c07315742d42b57c16b76d1f2525e8ec5db8b4181cbad7a0fa29c4d83dc0ef82f7052eaf4c11170d42b1738b68e4766208b0247b193
7
- data.tar.gz: 61286db2222c234660741d7f10842384e8d5074a479068731e4c95d831ac05950a74cb334f252ac06cd70b70460bc632d297173e30981323a73aa1a56f137384
6
+ metadata.gz: 7a05104150c32b22c516994f75443e83c9e1dc58a3268aacb07e6ebea70379191284e02b8abcae0ba0ae967491db7cdc0606a808accb0c01f138d78fd3269328
7
+ data.tar.gz: 3f4d3937a5a732b98d04cb5459692aad25391e1ebbc9b97351c78ecb067ceddca2dc755f6d45f90ea8396530cf4c0fd52d3f359bee2dbdd624fae700f8dc9084
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-faraday
2
2
 
3
+ ### v0.24.2 / 2024-04-30
4
+
5
+ * FIXED: Bundler conflict warnings
6
+
7
+ ### v0.24.1 / 2024-03-22
8
+
9
+ * FIXED: Propagate response attributes on Faraday::Error.
10
+
3
11
  ### v0.24.0 / 2024-02-20
4
12
 
5
13
  * ADDED: Faraday add support for internal spans
@@ -35,7 +35,11 @@ module OpenTelemetry
35
35
  ) do |span|
36
36
  OpenTelemetry.propagation.inject(env.request_headers)
37
37
 
38
- app.call(env).on_complete { |resp| trace_response(span, resp) }
38
+ app.call(env).on_complete { |resp| trace_response(span, resp.status) }
39
+ rescue ::Faraday::Error => e
40
+ trace_response(span, e.response[:status]) if e.response
41
+
42
+ raise
39
43
  end
40
44
  end
41
45
 
@@ -62,9 +66,9 @@ module OpenTelemetry
62
66
  Faraday::Instrumentation.instance.tracer
63
67
  end
64
68
 
65
- def trace_response(span, response)
66
- span.set_attribute('http.status_code', response.status)
67
- span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(response.status.to_i)
69
+ def trace_response(span, status)
70
+ span.set_attribute('http.status_code', status)
71
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(status.to_i)
68
72
  end
69
73
  end
70
74
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Faraday
10
- VERSION = '0.24.0'
10
+ VERSION = '0.24.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-faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.24.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: 2024-02-20 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.4'
83
- - !ruby/object:Gem::Dependency
84
- name: faraday
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: minitest
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +128,14 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.60.1
131
+ version: '1.62'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 1.60.1
138
+ version: '1.62'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rubocop-performance
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -228,10 +214,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
228
214
  licenses:
229
215
  - Apache-2.0
230
216
  metadata:
231
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.0/file/CHANGELOG.md
217
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.2/file/CHANGELOG.md
232
218
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/faraday
233
219
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
234
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.0
220
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.2
235
221
  post_install_message:
236
222
  rdoc_options: []
237
223
  require_paths: