opentelemetry-instrumentation-faraday 0.24.4 → 0.24.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8abde7df8501a1f21e16f2cba2fa493f8200477ace289eeceabfd280b3b0dde1
|
4
|
+
data.tar.gz: 33a53279feb96b8162379ef02c710b625613d76570ff4956123ccb030a5b04b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ea0bfc1c57c39c9605eca52da89127f4d71a7c4ea5a85a358bb3857102cf3da1cecec1c4e38c2a3ae4033694a2196e5dbb2be1fca17468c0b7f045d091d66d0
|
7
|
+
data.tar.gz: a687d98b26bf0cabb5520c4015b3c6742984b0564bedde8c8476d5426aaa27e91e81329d0f31153bc71074d5357cc20d83728e09ed39a03d91adf704565a5be6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-faraday
|
2
2
|
|
3
|
+
### v0.24.6 / 2024-07-23
|
4
|
+
|
5
|
+
* DOCS: Add cspell to CI
|
6
|
+
|
7
|
+
### v0.24.5 / 2024-06-20
|
8
|
+
|
9
|
+
* FIXED: Compatibility with Faraday v1
|
10
|
+
|
3
11
|
### v0.24.4 / 2024-06-18
|
4
12
|
|
5
13
|
* FIXED: Relax otel common gem constraints
|
@@ -87,7 +95,7 @@
|
|
87
95
|
|
88
96
|
### v0.18.0 / 2021-05-21
|
89
97
|
|
90
|
-
* ADDED: Updated API
|
98
|
+
* ADDED: Updated API dependency for 1.0.0.rc1
|
91
99
|
* FIXED: Removed http.status_text attribute #750
|
92
100
|
|
93
101
|
### v0.17.0 / 2021-04-22
|
@@ -140,7 +148,7 @@
|
|
140
148
|
### v0.7.0 / 2020-10-07
|
141
149
|
|
142
150
|
* DOCS: Faraday documentation
|
143
|
-
* DOCS: Standardize
|
151
|
+
* DOCS: Standardize top-level docs structure and readme
|
144
152
|
|
145
153
|
### v0.6.0 / 2020-09-10
|
146
154
|
|
@@ -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.6
|
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-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.65.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.
|
124
|
+
version: 1.65.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,16 +194,17 @@ files:
|
|
194
194
|
- lib/opentelemetry/instrumentation/faraday.rb
|
195
195
|
- lib/opentelemetry/instrumentation/faraday/instrumentation.rb
|
196
196
|
- lib/opentelemetry/instrumentation/faraday/middlewares/tracer_middleware.rb
|
197
|
+
- lib/opentelemetry/instrumentation/faraday/patches/connection.rb
|
197
198
|
- lib/opentelemetry/instrumentation/faraday/patches/rack_builder.rb
|
198
199
|
- lib/opentelemetry/instrumentation/faraday/version.rb
|
199
200
|
homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
200
201
|
licenses:
|
201
202
|
- Apache-2.0
|
202
203
|
metadata:
|
203
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.
|
204
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.6/file/CHANGELOG.md
|
204
205
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/faraday
|
205
206
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
206
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.
|
207
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.6
|
207
208
|
post_install_message:
|
208
209
|
rdoc_options: []
|
209
210
|
require_paths:
|