opentelemetry-instrumentation-faraday 0.24.5 → 0.24.7
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: 20a6c27bd32e03816e148c6050bd99b8d74afadb2f124bb10803713a64da2898
|
4
|
+
data.tar.gz: 4e3527bd8c32cefdf46884a33d890d8adaa1924e393debecc36b373d745cc01f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76751c9103de72eb650e63304db6f65ea671ad01f13e9e0d82274409567ed6590563dbaab3ef472e538ca79cc44885aceb0f8358e85a5eaca00fb0df10206aee
|
7
|
+
data.tar.gz: a44df86fd9da95d6e34f441d901fa9a8e33165f33af528eacd9a1627f19b3c648383edae731fa2a4b0e860e56d49d04934dd814f947d52797ca418c34bee073f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-faraday
|
2
2
|
|
3
|
+
### v0.24.7 / 2024-11-26
|
4
|
+
|
5
|
+
* CHANGED: Performance Freeze all range objects #1222
|
6
|
+
|
7
|
+
### v0.24.6 / 2024-07-23
|
8
|
+
|
9
|
+
* DOCS: Add cspell to CI
|
10
|
+
|
3
11
|
### v0.24.5 / 2024-06-20
|
4
12
|
|
5
13
|
* FIXED: Compatibility with Faraday v1
|
@@ -91,7 +99,7 @@
|
|
91
99
|
|
92
100
|
### v0.18.0 / 2021-05-21
|
93
101
|
|
94
|
-
* ADDED: Updated API
|
102
|
+
* ADDED: Updated API dependency for 1.0.0.rc1
|
95
103
|
* FIXED: Removed http.status_text attribute #750
|
96
104
|
|
97
105
|
### v0.17.0 / 2021-04-22
|
@@ -144,7 +152,7 @@
|
|
144
152
|
### v0.7.0 / 2020-10-07
|
145
153
|
|
146
154
|
* DOCS: Faraday documentation
|
147
|
-
* DOCS: Standardize
|
155
|
+
* DOCS: Standardize top-level docs structure and readme
|
148
156
|
|
149
157
|
### v0.6.0 / 2020-09-10
|
150
158
|
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ The OpenTelemetry Faraday Ruby gem is a community maintained instrumentation for
|
|
6
6
|
|
7
7
|
Install the gem using:
|
8
8
|
|
9
|
-
```
|
9
|
+
```console
|
10
10
|
gem install opentelemetry-instrumentation-faraday
|
11
11
|
```
|
12
12
|
|
@@ -38,7 +38,7 @@ Example usage of faraday can be seen in the `./example/faraday.rb` file [here](h
|
|
38
38
|
|
39
39
|
The `opentelemetry-instrumentation-faraday` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
|
40
40
|
|
41
|
-
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry
|
41
|
+
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry Ruby special interest group (SIG). You can get involved by joining us on our [GitHub Discussions][discussions-url], [Slack Channel][slack-channel] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
|
42
42
|
|
43
43
|
## License
|
44
44
|
|
@@ -50,4 +50,5 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
|
|
50
50
|
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
|
51
51
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
52
52
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
53
|
+
[slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
|
53
54
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -9,7 +9,7 @@ module OpenTelemetry
|
|
9
9
|
module Faraday
|
10
10
|
module Middlewares
|
11
11
|
# TracerMiddleware propagates context and instruments Faraday requests
|
12
|
-
# by way of its
|
12
|
+
# by way of its middleware system
|
13
13
|
class TracerMiddleware < ::Faraday::Middleware
|
14
14
|
HTTP_METHODS_SYMBOL_TO_STRING = {
|
15
15
|
connect: 'CONNECT',
|
@@ -23,6 +23,9 @@ module OpenTelemetry
|
|
23
23
|
trace: 'TRACE'
|
24
24
|
}.freeze
|
25
25
|
|
26
|
+
# Constant for the HTTP status range
|
27
|
+
HTTP_STATUS_SUCCESS_RANGE = (100..399)
|
28
|
+
|
26
29
|
def call(env)
|
27
30
|
http_method = HTTP_METHODS_SYMBOL_TO_STRING[env.method]
|
28
31
|
config = Faraday::Instrumentation.instance.config
|
@@ -68,7 +71,7 @@ module OpenTelemetry
|
|
68
71
|
|
69
72
|
def trace_response(span, status)
|
70
73
|
span.set_attribute('http.status_code', status)
|
71
|
-
span.status = OpenTelemetry::Trace::Status.error unless
|
74
|
+
span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(status.to_i)
|
72
75
|
end
|
73
76
|
end
|
74
77
|
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.7
|
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-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -114,28 +114,28 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.68.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.68.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.23.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 1.23.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: simplecov
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 3.24.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 3.24.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,10 +201,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
201
201
|
licenses:
|
202
202
|
- Apache-2.0
|
203
203
|
metadata:
|
204
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.
|
204
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.7/file/CHANGELOG.md
|
205
205
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/faraday
|
206
206
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
207
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.
|
207
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-faraday/0.24.7
|
208
208
|
post_install_message:
|
209
209
|
rdoc_options: []
|
210
210
|
require_paths:
|