opentelemetry-instrumentation-sinatra 0.28.0 → 0.30.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 +4 -4
- data/CHANGELOG.md +103 -100
- data/README.md +4 -10
- data/lib/opentelemetry/instrumentation/sinatra/extensions/tracer_extension.rb +1 -1
- data/lib/opentelemetry/instrumentation/sinatra/version.rb +1 -1
- metadata +7 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bf954cf1ceb1e8efa0fd1cfefc91f9dc855c31e4603f481c7361ec6f41f7843
|
|
4
|
+
data.tar.gz: 2501b8b85a7979c7c09b263c0f4215b357f399976f97ed249362707d4889976a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21fe76b2b86fc675f5ed8c7c7edd7746d6531dc80aca5473aaef786bf584e1afc486f2b7e76cb2c7ce8c9630e454079bd8cdd0ab98c5604c5cae57736856b2d4
|
|
7
|
+
data.tar.gz: f8606d8dbf52641f6f24891fa1315d097e588e97f3e60458b14479d080027cdeb510b4c6d6cea4bb54b4f0a470c9acd38a94c5c3dab9b471fd5237ce411e3816
|
data/CHANGELOG.md
CHANGED
|
@@ -1,185 +1,188 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-sinatra
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## v0.30.0 / 2026-04-14
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- BREAKING CHANGE: Min Ruby Version 3.3 (#2125)
|
|
6
|
+
- ADDED: Min Ruby Version 3.3 (#2125)
|
|
7
|
+
- ADDED: Add release tag into source code url of gem metadata (#1984)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
## v0.29.0 / 2026-03-17
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
- BREAKING CHANGE: Default to stable HTTP semantic conventions (#2051)
|
|
12
|
+
- ADDED: Default to stable HTTP semantic conventions (#2051)
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
## v0.28.0 / 2025-10-22
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
- BREAKING CHANGE: Min Ruby Version 3.2
|
|
17
|
+
- ADDED: Min Ruby Version 3.2
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
## v0.27.1 / 2025-10-07
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
- FIXED: Unify rack middleware_args
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## v0.27.0 / 2025-09-30
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
- ADDED: Bump minimum API Version to 1.7
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
## v0.26.0 / 2025-08-19
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
- ADDED: Add `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable compatibility for Rack integration [#1594](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1594)
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
## v0.25.0 / 2025-01-16
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
- BREAKING CHANGE: Set minimum supported version to Ruby 3.1
|
|
34
|
+
- ADDED: Set minimum supported version to Ruby 3.1
|
|
30
35
|
|
|
31
|
-
|
|
36
|
+
## v0.24.1 / 2024-07-23
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
- DOCS: Add cspell to CI
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
## v0.24.0 / 2024-07-02
|
|
36
41
|
|
|
37
|
-
|
|
42
|
+
- ADDED: Make Rack install optional for sinatra
|
|
38
43
|
|
|
39
|
-
|
|
44
|
+
## v0.23.5 / 2024-06-18
|
|
40
45
|
|
|
41
|
-
|
|
46
|
+
- FIXED: Relax otel common gem constraints
|
|
42
47
|
|
|
43
|
-
|
|
48
|
+
## v0.23.4 / 2024-05-09
|
|
44
49
|
|
|
45
|
-
|
|
50
|
+
- FIXED: Untrace entire request
|
|
46
51
|
|
|
47
|
-
|
|
52
|
+
## v0.23.3 / 2024-04-30
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
- FIXED: Bundler conflict warnings
|
|
50
55
|
|
|
51
|
-
|
|
56
|
+
## v0.23.2 / 2023-07-21
|
|
52
57
|
|
|
53
|
-
|
|
58
|
+
- ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
## v0.23.1 / 2023-06-05
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
* FIXED: Base config options
|
|
62
|
+
- (No significant changes)
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
## v0.23.0 / 2023-06-05
|
|
61
65
|
|
|
62
|
-
|
|
66
|
+
- ADDED: Use Rack Middleware Helper
|
|
67
|
+
- FIXED: Base config options
|
|
63
68
|
|
|
64
|
-
|
|
69
|
+
## v0.22.0 / 2023-04-17
|
|
65
70
|
|
|
66
|
-
|
|
71
|
+
- BREAKING CHANGE: Drop support for EoL Ruby 2.7
|
|
72
|
+
- ADDED: Drop support for EoL Ruby 2.7
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
## v0.21.5 / 2023-02-13
|
|
69
75
|
|
|
70
|
-
|
|
76
|
+
- FIXED: Add exceptions to sinatra spans, ruboproof test.
|
|
71
77
|
|
|
72
|
-
|
|
78
|
+
## v0.21.4 / 2023-02-08
|
|
73
79
|
|
|
74
|
-
|
|
80
|
+
- CHANGED: incorrect error type being recorded when Sinatra route raises exception [#317](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/317)
|
|
75
81
|
|
|
76
|
-
|
|
82
|
+
## v0.21.3 / 2023-01-27
|
|
77
83
|
|
|
78
|
-
|
|
84
|
+
- fix: Check if env['sinatra.error'] exists before recording it
|
|
79
85
|
|
|
80
|
-
|
|
81
|
-
* DOCS: More gem documentation fixes
|
|
86
|
+
## v0.21.2 / 2023-01-14
|
|
82
87
|
|
|
83
|
-
|
|
88
|
+
- DOCS: Fix gem homepage
|
|
89
|
+
- DOCS: More gem documentation fixes
|
|
84
90
|
|
|
85
|
-
|
|
91
|
+
## v0.21.1 / 2022-11-16
|
|
86
92
|
|
|
87
|
-
|
|
93
|
+
- FIXED: Loosen dependency on Rack
|
|
88
94
|
|
|
89
|
-
|
|
90
|
-
* FIXED: Add exceptions to sinatra spans.
|
|
95
|
+
## v0.21.0 / 2022-10-12
|
|
91
96
|
|
|
92
|
-
|
|
97
|
+
- ADDED: Use rack middleware in sinatra middleware
|
|
98
|
+
- FIXED: Add exceptions to sinatra spans.
|
|
93
99
|
|
|
94
|
-
|
|
95
|
-
* FIXED: Broken test file requirements
|
|
100
|
+
## v0.20.0 / 2022-06-09
|
|
96
101
|
|
|
97
|
-
|
|
102
|
+
- Upgrading Base dependency version
|
|
103
|
+
- FIXED: Broken test file requirements
|
|
98
104
|
|
|
99
|
-
|
|
105
|
+
## v0.19.4 / 2022-05-02
|
|
100
106
|
|
|
101
|
-
|
|
107
|
+
- FIXED: Update server instrumentation to not reflect 400 status as error
|
|
102
108
|
|
|
103
|
-
|
|
109
|
+
## v0.19.3 / 2021-12-01
|
|
104
110
|
|
|
105
|
-
|
|
111
|
+
- FIXED: Sinatra to stop using api env getter
|
|
106
112
|
|
|
107
|
-
|
|
113
|
+
## v0.19.2 / 2021-09-29
|
|
108
114
|
|
|
109
|
-
|
|
115
|
+
- (No significant changes)
|
|
110
116
|
|
|
111
|
-
|
|
117
|
+
## v0.19.1 / 2021-08-12
|
|
112
118
|
|
|
113
|
-
|
|
119
|
+
- DOCS: Update docs to rely more on environment variable configuration
|
|
114
120
|
|
|
115
|
-
|
|
121
|
+
## v0.19.0 / 2021-06-23
|
|
116
122
|
|
|
117
|
-
|
|
123
|
+
- BREAKING CHANGE: Total order constraint on span.status=
|
|
124
|
+
- FIXED: Total order constraint on span.status=
|
|
118
125
|
|
|
119
|
-
|
|
126
|
+
## v0.18.0 / 2021-05-21
|
|
120
127
|
|
|
121
|
-
|
|
122
|
-
|
|
128
|
+
- ADDED: Updated API dependency for 1.0.0.rc1
|
|
129
|
+
- BREAKING CHANGE: Remove optional parent_context from in_span
|
|
130
|
+
- FIXED: Remove optional parent_context from in_span
|
|
131
|
+
- FIXED: Removed http.status_text attribute #750
|
|
123
132
|
|
|
124
|
-
|
|
125
|
-
* FIXED: Removed http.status_text attribute #750
|
|
133
|
+
## v0.17.0 / 2021-04-22
|
|
126
134
|
|
|
127
|
-
|
|
135
|
+
- (No significant changes)
|
|
128
136
|
|
|
129
|
-
|
|
137
|
+
## v0.16.0 / 2021-03-17
|
|
130
138
|
|
|
131
|
-
|
|
139
|
+
- FIXED: Example scripts now reference local common lib
|
|
140
|
+
- DOCS: Replace Gitter with GitHub Discussions
|
|
132
141
|
|
|
133
|
-
|
|
134
|
-
* DOCS: Replace Gitter with GitHub Discussions
|
|
142
|
+
## v0.15.0 / 2021-02-18
|
|
135
143
|
|
|
136
|
-
|
|
144
|
+
- (No significant changes)
|
|
137
145
|
|
|
138
|
-
|
|
146
|
+
## v0.14.0 / 2021-02-03
|
|
139
147
|
|
|
140
|
-
|
|
148
|
+
- BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
|
|
149
|
+
- ADDED: Replace getter and setter callables and remove rack specific propagators
|
|
141
150
|
|
|
142
|
-
|
|
151
|
+
## v0.13.0 / 2021-01-29
|
|
143
152
|
|
|
144
|
-
|
|
153
|
+
- (No significant changes)
|
|
145
154
|
|
|
146
|
-
|
|
155
|
+
## v0.12.0 / 2020-12-24
|
|
147
156
|
|
|
148
|
-
|
|
157
|
+
- (No significant changes)
|
|
149
158
|
|
|
150
|
-
|
|
159
|
+
## v0.11.0 / 2020-12-11
|
|
151
160
|
|
|
152
|
-
|
|
161
|
+
- FIXED: Copyright comments to not reference year
|
|
153
162
|
|
|
154
|
-
|
|
163
|
+
## v0.10.0 / 2020-12-03
|
|
155
164
|
|
|
156
|
-
|
|
165
|
+
- (No significant changes)
|
|
157
166
|
|
|
158
|
-
|
|
167
|
+
## v0.9.0 / 2020-11-27
|
|
159
168
|
|
|
160
|
-
|
|
169
|
+
- BREAKING CHANGE: Add timeout for force_flush and shutdown
|
|
170
|
+
- ADDED: Add timeout for force_flush and shutdown
|
|
161
171
|
|
|
162
|
-
|
|
172
|
+
## v0.8.0 / 2020-10-27
|
|
163
173
|
|
|
164
|
-
|
|
174
|
+
- BREAKING CHANGE: Remove 'canonical' from status codes
|
|
175
|
+
- FIXED: Remove 'canonical' from status codes
|
|
165
176
|
|
|
166
|
-
|
|
177
|
+
## v0.7.1 / 2020-10-08
|
|
167
178
|
|
|
168
|
-
|
|
179
|
+
- FIXED: Set span name to sinatra.route
|
|
169
180
|
|
|
170
|
-
|
|
181
|
+
## v0.7.0 / 2020-10-07
|
|
171
182
|
|
|
172
|
-
|
|
183
|
+
- FIXED: Default to sinatra.route for span name
|
|
184
|
+
- DOCS: Standardize top-level docs structure and readme
|
|
173
185
|
|
|
174
|
-
|
|
186
|
+
## v0.6.0 / 2020-09-10
|
|
175
187
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### v0.7.0 / 2020-10-07
|
|
179
|
-
|
|
180
|
-
* FIXED: Default to sinatra.route for span name
|
|
181
|
-
* DOCS: Standardize top-level docs structure and readme
|
|
182
|
-
|
|
183
|
-
### v0.6.0 / 2020-09-10
|
|
184
|
-
|
|
185
|
-
* (No significant changes)
|
|
188
|
+
- (No significant changes)
|
data/README.md
CHANGED
|
@@ -75,18 +75,12 @@ The `opentelemetry-instrumentation-sinatra` gem is distributed under the Apache
|
|
|
75
75
|
|
|
76
76
|
## HTTP semantic convention stability
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
To facilitate the migration to stable semantic conventions, you can use the `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable. This variable allows you to opt-in to the new stable conventions, ensuring compatibility and future-proofing your instrumentation.
|
|
81
|
-
|
|
82
|
-
Sinatra instrumentation installs Rack middleware, but the middleware version it installs depends on which `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable is set.
|
|
78
|
+
Sinatra instrumentation installs Rack middleware which by default emits the stable HTTP semantic conventions. The `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable can be used to opt-in to the old or duplicate (both old and stable) semantic conventions.
|
|
83
79
|
|
|
84
80
|
When setting the value for `OTEL_SEMCONV_STABILITY_OPT_IN`, you can specify which conventions you wish to adopt:
|
|
85
81
|
|
|
86
|
-
- `http` - Emits the stable HTTP and networking conventions
|
|
87
|
-
- `http/dup` - Emits both the old and stable HTTP and networking conventions
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
During the transition from old to stable conventions, Rack instrumentation code comes in three patch versions: `dup`, `old`, and `stable`. These versions are identical except for the attributes they send. Any changes to Rack instrumentation should consider all three patches.
|
|
82
|
+
- `http` - Emits the stable HTTP and networking conventions.
|
|
83
|
+
- `http/dup` - **DEPRECATED: Will be removed on April 15, 2026.** Emits both the old and stable HTTP and networking conventions.
|
|
84
|
+
- `old` - **DEPRECATED: Will be removed on April 15, 2026.** Emits the old HTTP and networking conventions.
|
|
91
85
|
|
|
92
86
|
For additional information on migration, please refer to our [documentation](https://opentelemetry.io/docs/specs/semconv/non-normative/http-migration/).
|
|
@@ -13,7 +13,7 @@ module OpenTelemetry
|
|
|
13
13
|
# Sinatra extension that installs TracerMiddleware and provides
|
|
14
14
|
# tracing for template rendering
|
|
15
15
|
module TracerExtension
|
|
16
|
-
#
|
|
16
|
+
# Constants patches for `render` method
|
|
17
17
|
module RenderPatches
|
|
18
18
|
def render(_engine, data, *)
|
|
19
19
|
template_name = data.is_a?(Symbol) ? data : :literal
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opentelemetry-instrumentation-sinatra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.30.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenTelemetry Authors
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: opentelemetry-instrumentation-rack
|
|
@@ -46,11 +45,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
46
45
|
licenses:
|
|
47
46
|
- Apache-2.0
|
|
48
47
|
metadata:
|
|
49
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.
|
|
50
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/
|
|
48
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.30.0/file/CHANGELOG.md
|
|
49
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-sinatra/v0.30.0/instrumentation/sinatra
|
|
51
50
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
52
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.
|
|
53
|
-
post_install_message:
|
|
51
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.30.0
|
|
54
52
|
rdoc_options: []
|
|
55
53
|
require_paths:
|
|
56
54
|
- lib
|
|
@@ -58,15 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
58
56
|
requirements:
|
|
59
57
|
- - ">="
|
|
60
58
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.
|
|
59
|
+
version: '3.3'
|
|
62
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
61
|
requirements:
|
|
64
62
|
- - ">="
|
|
65
63
|
- !ruby/object:Gem::Version
|
|
66
64
|
version: '0'
|
|
67
65
|
requirements: []
|
|
68
|
-
rubygems_version:
|
|
69
|
-
signing_key:
|
|
66
|
+
rubygems_version: 4.0.6
|
|
70
67
|
specification_version: 4
|
|
71
68
|
summary: Sinatra instrumentation for the OpenTelemetry framework
|
|
72
69
|
test_files: []
|