opentelemetry-instrumentation-rack 0.28.1 → 0.29.0
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: aa4c2bf498d66000899c1a358e2bbe5f9f696507a8b0e8a06ad6fd952f3a5f14
|
|
4
|
+
data.tar.gz: 2fcb1dcbe88d67b34bc2547ba0299cd67f78f883a50ce8c65b08105d8bf5d594
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 685050b61fdf043457ebac51882b6936760df2be76982ba6e35a92d235e4aee1f3701fb106f3f6cbf8edd764443a809e5e101c759611df83d58fef70d4503735
|
|
7
|
+
data.tar.gz: 9d1dff410595600dbcd09423e946d099313a509760b3852bdb3762485aa6441d3d9e27d66d4d55db5bf92c933d84bb9b63cdd072801bc99f74ad072c3e13462d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-rack
|
|
2
2
|
|
|
3
|
+
### v0.29.0 / 2025-10-22
|
|
4
|
+
|
|
5
|
+
* BREAKING CHANGE: Min Ruby Version 3.2
|
|
6
|
+
|
|
7
|
+
* ADDED: Min Ruby Version 3.2
|
|
8
|
+
|
|
9
|
+
### v0.28.2 / 2025-10-07
|
|
10
|
+
|
|
11
|
+
* FIXED: Unify rack middleware_args
|
|
12
|
+
|
|
3
13
|
### v0.28.1 / 2025-09-30
|
|
4
14
|
|
|
5
15
|
* FIXED: Min OTel Ruby API 1.7
|
data/README.md
CHANGED
|
@@ -71,7 +71,7 @@ This is how the rails controller instrumentation is able to rename the span name
|
|
|
71
71
|
|
|
72
72
|
### High cardinality example
|
|
73
73
|
|
|
74
|
-
You can pass in
|
|
74
|
+
You can pass in a url quantization lambda that simply uses the URL path; the result is you will end up with high cardinality span names. However, this may be acceptable in your deployment and is easily configurable using the following example.
|
|
75
75
|
|
|
76
76
|
```ruby
|
|
77
77
|
OpenTelemetry::SDK.configure do |c|
|
|
@@ -32,6 +32,11 @@ module OpenTelemetry
|
|
|
32
32
|
# This option is only valid for applications using Rack 2.0 or greater
|
|
33
33
|
option :use_rack_events, default: true, validate: :boolean
|
|
34
34
|
|
|
35
|
+
def middleware_args
|
|
36
|
+
patch_type = determine_semconv
|
|
37
|
+
send(:"middleware_args_#{patch_type}")
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
# Temporary Helper for Sinatra and ActionPack middleware to use during installation
|
|
36
41
|
#
|
|
37
42
|
# @example Default usage
|
|
@@ -40,7 +45,7 @@ module OpenTelemetry
|
|
|
40
45
|
# run lambda { |_arg| [200, { 'Content-Type' => 'text/plain' }, body] }
|
|
41
46
|
# end
|
|
42
47
|
# @return [Array] consisting of a middleware and arguments used in rack builders
|
|
43
|
-
def
|
|
48
|
+
def middleware_args_old
|
|
44
49
|
if config.fetch(:use_rack_events, false) == true && defined?(OpenTelemetry::Instrumentation::Rack::Middlewares::Old::EventHandler)
|
|
45
50
|
[::Rack::Events, [OpenTelemetry::Instrumentation::Rack::Middlewares::Old::EventHandler.new]]
|
|
46
51
|
else
|
|
@@ -48,8 +53,6 @@ module OpenTelemetry
|
|
|
48
53
|
end
|
|
49
54
|
end
|
|
50
55
|
|
|
51
|
-
alias middleware_args_old middleware_args
|
|
52
|
-
|
|
53
56
|
def middleware_args_dup
|
|
54
57
|
if config.fetch(:use_rack_events, false) == true && defined?(OpenTelemetry::Instrumentation::Rack::Middlewares::Dup::EventHandler)
|
|
55
58
|
[::Rack::Events, [OpenTelemetry::Instrumentation::Rack::Middlewares::Dup::EventHandler.new]]
|
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.
|
|
4
|
+
version: 0.29.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenTelemetry Authors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opentelemetry-instrumentation-base
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
19
|
+
version: '0.25'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
26
|
+
version: '0.25'
|
|
27
27
|
description: Rack instrumentation for the OpenTelemetry framework
|
|
28
28
|
email:
|
|
29
29
|
- cncf-opentelemetry-contributors@lists.cncf.io
|
|
@@ -52,10 +52,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
52
52
|
licenses:
|
|
53
53
|
- Apache-2.0
|
|
54
54
|
metadata:
|
|
55
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.
|
|
55
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.29.0/file/CHANGELOG.md
|
|
56
56
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/rack
|
|
57
57
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
58
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.
|
|
58
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rack/0.29.0
|
|
59
59
|
post_install_message:
|
|
60
60
|
rdoc_options: []
|
|
61
61
|
require_paths:
|
|
@@ -64,14 +64,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
requirements:
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '3.
|
|
67
|
+
version: '3.2'
|
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
70
|
- - ">="
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
72
|
version: '0'
|
|
73
73
|
requirements: []
|
|
74
|
-
rubygems_version: 3.
|
|
74
|
+
rubygems_version: 3.4.19
|
|
75
75
|
signing_key:
|
|
76
76
|
specification_version: 4
|
|
77
77
|
summary: Rack instrumentation for the OpenTelemetry framework
|