opentelemetry-instrumentation-faraday 0.24.3 → 0.24.5
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: 39ec6be55b4bf318fc30fddbe67a94928548fcf913bc089d556ed45c54a0a3c6
|
4
|
+
data.tar.gz: 119610d0f96a58afcb5d4a3611a23eac4754174816773199cc63084fc219d891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 831e19d7d378bb5444764ccb32ad14ad23f0e0d201cb90a64155dc9feffa78a459abe89037c1285c218101c1e70c08f574e2f9b3d7966032b07a2c11691dd819
|
7
|
+
data.tar.gz: 36f868a9c5d23ee86bb300413208d1808c48fd7984a68b09ddced3200d0daf353405b4572ffa7772bf065240455bcf5e60a55e3b203b3a3d56cb102acb89687b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-faraday
|
2
2
|
|
3
|
+
### v0.24.5 / 2024-06-20
|
4
|
+
|
5
|
+
* FIXED: Compatibility with Faraday v1
|
6
|
+
|
7
|
+
### v0.24.4 / 2024-06-18
|
8
|
+
|
9
|
+
* FIXED: Relax otel common gem constraints
|
10
|
+
|
3
11
|
### v0.24.3 / 2024-05-09
|
4
12
|
|
5
13
|
* FIXED: Untrace entire request
|
@@ -27,6 +27,7 @@ module OpenTelemetry
|
|
27
27
|
|
28
28
|
def require_dependencies
|
29
29
|
require_relative 'middlewares/tracer_middleware'
|
30
|
+
require_relative 'patches/connection'
|
30
31
|
require_relative 'patches/rack_builder'
|
31
32
|
end
|
32
33
|
|
@@ -37,7 +38,11 @@ module OpenTelemetry
|
|
37
38
|
end
|
38
39
|
|
39
40
|
def use_middleware_by_default
|
40
|
-
::Faraday::
|
41
|
+
if Gem::Version.new(::Faraday::VERSION) >= Gem::Version.new('1')
|
42
|
+
::Faraday::Connection.prepend(Patches::Connection)
|
43
|
+
else
|
44
|
+
::Faraday::RackBuilder.prepend(Patches::RackBuilder)
|
45
|
+
end
|
41
46
|
end
|
42
47
|
end
|
43
48
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# SPDX-License-Identifier: Apache-2.0
|
6
|
+
|
7
|
+
module OpenTelemetry
|
8
|
+
module Instrumentation
|
9
|
+
module Faraday
|
10
|
+
module Patches
|
11
|
+
# Module to be prepended to force Faraday to use the middleware by
|
12
|
+
# default so the user doesn't have to call `use` for every connection.
|
13
|
+
module Connection
|
14
|
+
# Wraps Faraday::Connection#initialize:
|
15
|
+
# https://github.com/lostisland/faraday/blob/ff9dc1d1219a1bbdba95a9a4cf5d135b97247ee2/lib/faraday/connection.rb#L62-L92
|
16
|
+
def initialize(*args)
|
17
|
+
super.tap do
|
18
|
+
use(:open_telemetry) unless builder.handlers.any? do |handler|
|
19
|
+
handler.klass == Middlewares::TracerMiddleware
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
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.5
|
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-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: opentelemetry-common
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.21.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.21.0
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: opentelemetry-instrumentation-base
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +114,14 @@ dependencies:
|
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
117
|
+
version: 1.64.0
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
124
|
+
version: 1.64.0
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: rubocop-performance
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,16 +194,17 @@ files:
|
|
208
194
|
- lib/opentelemetry/instrumentation/faraday.rb
|
209
195
|
- lib/opentelemetry/instrumentation/faraday/instrumentation.rb
|
210
196
|
- lib/opentelemetry/instrumentation/faraday/middlewares/tracer_middleware.rb
|
197
|
+
- lib/opentelemetry/instrumentation/faraday/patches/connection.rb
|
211
198
|
- lib/opentelemetry/instrumentation/faraday/patches/rack_builder.rb
|
212
199
|
- lib/opentelemetry/instrumentation/faraday/version.rb
|
213
200
|
homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
214
201
|
licenses:
|
215
202
|
- Apache-2.0
|
216
203
|
metadata:
|
217
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.
|
204
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.5/file/CHANGELOG.md
|
218
205
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/faraday
|
219
206
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
220
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.
|
207
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.5
|
221
208
|
post_install_message:
|
222
209
|
rdoc_options: []
|
223
210
|
require_paths:
|