opentelemetry-instrumentation-rack 0.23.3 → 0.23.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: c034c06a57be3531e53405a03d31b451e5ee96b5d01aa1e431f49114f82b84a9
|
4
|
+
data.tar.gz: 4bdf91f7a3f010d91805fb024d9b4c5393c7c741e11d535daa223a062146518f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1685546ce8ab8568f591de26bc63d9bb2a843a98218e5541061072394e0f78f9efc100dbf49e52ddd61bd9e048f35a9e7028ef501c106408f236627d6f7b886
|
7
|
+
data.tar.gz: 4cccff1a775455e9ce5f2339d15cf23553d300f45b3c7d75ec06c2d42b002aca5b942eb8dcdbaf5c2a4d3899fa981add32e83587679af935b55811b691ef1431
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-rack
|
2
2
|
|
3
|
+
### v0.23.5 / 2023-11-23
|
4
|
+
|
5
|
+
* CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
|
6
|
+
|
7
|
+
### v0.23.4 / 2023-08-03
|
8
|
+
|
9
|
+
* FIXED: Remove inline linter rules
|
10
|
+
|
3
11
|
### v0.23.3 / 2023-07-21
|
4
12
|
|
5
13
|
* ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
|
data/README.md
CHANGED
@@ -12,6 +12,19 @@ gem install opentelemetry-instrumentation-rack
|
|
12
12
|
|
13
13
|
Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-rack` in your `Gemfile`.
|
14
14
|
|
15
|
+
### Version Compatibility
|
16
|
+
|
17
|
+
Older versions of Rack are not supported by the latest version of this instrumentation. If you are using an older version of Rack and need an earlier version of this instrumentation, then consider installing and pinning the compatible gem version, e.g.:
|
18
|
+
|
19
|
+
```console
|
20
|
+
gem opentelemetry-instrumentation-rack, "<version>"
|
21
|
+
```
|
22
|
+
|
23
|
+
| Rack Version | Instrumentation Version |
|
24
|
+
| ------------ | ----------------------- |
|
25
|
+
| `< 2.0` | `= 0.22.1` |
|
26
|
+
| `>= 2.0` | `~> 0.23` |
|
27
|
+
|
15
28
|
## Usage
|
16
29
|
|
17
30
|
To use the instrumentation, call `use` with the name of the instrumentation:
|
@@ -56,7 +56,7 @@ module OpenTelemetry
|
|
56
56
|
@untraced_endpoints = config[:untraced_endpoints]
|
57
57
|
end
|
58
58
|
|
59
|
-
def call(env)
|
59
|
+
def call(env)
|
60
60
|
if untraced_request?(env)
|
61
61
|
OpenTelemetry::Common::Utilities.untraced do
|
62
62
|
return @app.call(env)
|
@@ -150,7 +150,7 @@ module OpenTelemetry
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def set_attributes_after_request(span, status, headers, _response)
|
153
|
-
span.status = OpenTelemetry::Trace::Status.error unless (100..499).
|
153
|
+
span.status = OpenTelemetry::Trace::Status.error unless (100..499).cover?(status.to_i)
|
154
154
|
span.set_attribute('http.status_code', status)
|
155
155
|
|
156
156
|
# NOTE: if data is available, it would be good to do this:
|
@@ -16,7 +16,7 @@ module OpenTelemetry
|
|
16
16
|
|
17
17
|
module_function
|
18
18
|
|
19
|
-
def get_request_start(env, now = nil)
|
19
|
+
def get_request_start(env, now = nil)
|
20
20
|
header = env[REQUEST_START] || env[QUEUE_START]
|
21
21
|
return unless header
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.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: 2023-
|
11
|
+
date: 2023-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: '2.5'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: '2.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,70 +198,70 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 1.
|
201
|
+
version: 1.56.1
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 1.
|
208
|
+
version: 1.56.1
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: rubocop-performance
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
215
|
+
version: 1.19.1
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
222
|
+
version: 1.19.1
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: simplecov
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
229
|
+
version: 0.17.1
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
236
|
+
version: 0.17.1
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
238
|
+
name: webmock
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: '
|
243
|
+
version: '3.19'
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: '
|
250
|
+
version: '3.19'
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
-
name: yard
|
252
|
+
name: yard
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 0.
|
257
|
+
version: '0.9'
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 0.
|
264
|
+
version: '0.9'
|
265
265
|
description: Rack instrumentation for the OpenTelemetry framework
|
266
266
|
email:
|
267
267
|
- cncf-opentelemetry-contributors@lists.cncf.io
|
@@ -286,10 +286,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
286
286
|
licenses:
|
287
287
|
- Apache-2.0
|
288
288
|
metadata:
|
289
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.23.
|
289
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.23.5/file/CHANGELOG.md
|
290
290
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/rack
|
291
291
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
292
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.23.
|
292
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.23.5
|
293
293
|
post_install_message:
|
294
294
|
rdoc_options: []
|
295
295
|
require_paths:
|