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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06d6bf056211f8343299b02515de3b0b3cd3781db18903ef5cb38eb8119c74ad
|
4
|
+
data.tar.gz: 6884f57969229c728c2a742142e5dec4ae4ebf1b609acd72ff6d42ef860edbc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
66
|
-
span.set_attribute('http.status_code',
|
67
|
-
span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(
|
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
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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:
|