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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 318480b7a2ebb3f2c70ee30d0eea4f62a9482f7738a7735bfb98e945c225755b
4
- data.tar.gz: 9ff739170cf12981f0df1965399dcdd2af75598ce7dd4790ae4bda07d9bf8cdf
3
+ metadata.gz: 4bf954cf1ceb1e8efa0fd1cfefc91f9dc855c31e4603f481c7361ec6f41f7843
4
+ data.tar.gz: 2501b8b85a7979c7c09b263c0f4215b357f399976f97ed249362707d4889976a
5
5
  SHA512:
6
- metadata.gz: 8ee65d308feae79251bb9a1ccccf46e14de2397805597836a4f23a6af7114fa600fc326d3235dfb8fd8be0d5694f578fc54a4f88a3692a205b6517f751f033d6
7
- data.tar.gz: 31fcbf721f0c1f013e8ed13013bb8704860cde9701d8620f1c29be9b19b278b3c102c0b243886e28282ec067f60d3e99a842c4cb77a53cb08c021a359b7e257a
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
- ### v0.28.0 / 2025-10-22
3
+ ## v0.30.0 / 2026-04-14
4
4
 
5
- * BREAKING CHANGE: Min Ruby Version 3.2
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
- * ADDED: Min Ruby Version 3.2
9
+ ## v0.29.0 / 2026-03-17
8
10
 
9
- ### v0.27.1 / 2025-10-07
11
+ - BREAKING CHANGE: Default to stable HTTP semantic conventions (#2051)
12
+ - ADDED: Default to stable HTTP semantic conventions (#2051)
10
13
 
11
- * FIXED: Unify rack middleware_args
14
+ ## v0.28.0 / 2025-10-22
12
15
 
13
- ### v0.27.0 / 2025-09-30
16
+ - BREAKING CHANGE: Min Ruby Version 3.2
17
+ - ADDED: Min Ruby Version 3.2
14
18
 
15
- * ADDED: Bump minimum API Version to 1.7
19
+ ## v0.27.1 / 2025-10-07
16
20
 
17
- ### v0.26.0 / 2025-08-19
21
+ - FIXED: Unify rack middleware_args
18
22
 
19
- * ADDED: Add `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable compatibility for Rack integration [#1594](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1594)
23
+ ## v0.27.0 / 2025-09-30
20
24
 
21
- ### v0.25.0 / 2025-01-16
25
+ - ADDED: Bump minimum API Version to 1.7
22
26
 
23
- * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
27
+ ## v0.26.0 / 2025-08-19
24
28
 
25
- * ADDED: Set minimum supported version to Ruby 3.1
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
- ### v0.24.1 / 2024-07-23
31
+ ## v0.25.0 / 2025-01-16
28
32
 
29
- * DOCS: Add cspell to CI
33
+ - BREAKING CHANGE: Set minimum supported version to Ruby 3.1
34
+ - ADDED: Set minimum supported version to Ruby 3.1
30
35
 
31
- ### v0.24.0 / 2024-07-02
36
+ ## v0.24.1 / 2024-07-23
32
37
 
33
- * ADDED: Make Rack install optional for sinatra
38
+ - DOCS: Add cspell to CI
34
39
 
35
- ### v0.23.5 / 2024-06-18
40
+ ## v0.24.0 / 2024-07-02
36
41
 
37
- * FIXED: Relax otel common gem constraints
42
+ - ADDED: Make Rack install optional for sinatra
38
43
 
39
- ### v0.23.4 / 2024-05-09
44
+ ## v0.23.5 / 2024-06-18
40
45
 
41
- * FIXED: Untrace entire request
46
+ - FIXED: Relax otel common gem constraints
42
47
 
43
- ### v0.23.3 / 2024-04-30
48
+ ## v0.23.4 / 2024-05-09
44
49
 
45
- * FIXED: Bundler conflict warnings
50
+ - FIXED: Untrace entire request
46
51
 
47
- ### v0.23.2 / 2023-07-21
52
+ ## v0.23.3 / 2024-04-30
48
53
 
49
- * ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
54
+ - FIXED: Bundler conflict warnings
50
55
 
51
- ### v0.23.1 / 2023-06-05
56
+ ## v0.23.2 / 2023-07-21
52
57
 
53
- * (No significant changes)
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
- ### v0.23.0 / 2023-06-05
60
+ ## v0.23.1 / 2023-06-05
56
61
 
57
- * ADDED: Use Rack Middleware Helper
58
- * FIXED: Base config options
62
+ - (No significant changes)
59
63
 
60
- ### v0.22.0 / 2023-04-17
64
+ ## v0.23.0 / 2023-06-05
61
65
 
62
- * BREAKING CHANGE: Drop support for EoL Ruby 2.7
66
+ - ADDED: Use Rack Middleware Helper
67
+ - FIXED: Base config options
63
68
 
64
- * ADDED: Drop support for EoL Ruby 2.7
69
+ ## v0.22.0 / 2023-04-17
65
70
 
66
- ### v0.21.5 / 2023-02-13
71
+ - BREAKING CHANGE: Drop support for EoL Ruby 2.7
72
+ - ADDED: Drop support for EoL Ruby 2.7
67
73
 
68
- * FIXED: Add exceptions to sinatra spans, ruboproof test.
74
+ ## v0.21.5 / 2023-02-13
69
75
 
70
- ### v0.21.4 / 2023-02-08
76
+ - FIXED: Add exceptions to sinatra spans, ruboproof test.
71
77
 
72
- * CHANGED: incorrect error type being recorded when Sinatra route raises exception [#317](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/317)
78
+ ## v0.21.4 / 2023-02-08
73
79
 
74
- ### v0.21.3 / 2023-01-27
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
- * fix: Check if env['sinatra.error'] exists before recording it
82
+ ## v0.21.3 / 2023-01-27
77
83
 
78
- ### v0.21.2 / 2023-01-14
84
+ - fix: Check if env['sinatra.error'] exists before recording it
79
85
 
80
- * DOCS: Fix gem homepage
81
- * DOCS: More gem documentation fixes
86
+ ## v0.21.2 / 2023-01-14
82
87
 
83
- ### v0.21.1 / 2022-11-16
88
+ - DOCS: Fix gem homepage
89
+ - DOCS: More gem documentation fixes
84
90
 
85
- * FIXED: Loosen dependency on Rack
91
+ ## v0.21.1 / 2022-11-16
86
92
 
87
- ### v0.21.0 / 2022-10-12
93
+ - FIXED: Loosen dependency on Rack
88
94
 
89
- * ADDED: Use rack middleware in sinatra middleware
90
- * FIXED: Add exceptions to sinatra spans.
95
+ ## v0.21.0 / 2022-10-12
91
96
 
92
- ### v0.20.0 / 2022-06-09
97
+ - ADDED: Use rack middleware in sinatra middleware
98
+ - FIXED: Add exceptions to sinatra spans.
93
99
 
94
- * Upgrading Base dependency version
95
- * FIXED: Broken test file requirements
100
+ ## v0.20.0 / 2022-06-09
96
101
 
97
- ### v0.19.4 / 2022-05-02
102
+ - Upgrading Base dependency version
103
+ - FIXED: Broken test file requirements
98
104
 
99
- * FIXED: Update server instrumentation to not reflect 400 status as error
105
+ ## v0.19.4 / 2022-05-02
100
106
 
101
- ### v0.19.3 / 2021-12-01
107
+ - FIXED: Update server instrumentation to not reflect 400 status as error
102
108
 
103
- * FIXED: Sinatra to stop using api env getter
109
+ ## v0.19.3 / 2021-12-01
104
110
 
105
- ### v0.19.2 / 2021-09-29
111
+ - FIXED: Sinatra to stop using api env getter
106
112
 
107
- * (No significant changes)
113
+ ## v0.19.2 / 2021-09-29
108
114
 
109
- ### v0.19.1 / 2021-08-12
115
+ - (No significant changes)
110
116
 
111
- * DOCS: Update docs to rely more on environment variable configuration
117
+ ## v0.19.1 / 2021-08-12
112
118
 
113
- ### v0.19.0 / 2021-06-23
119
+ - DOCS: Update docs to rely more on environment variable configuration
114
120
 
115
- * BREAKING CHANGE: Total order constraint on span.status=
121
+ ## v0.19.0 / 2021-06-23
116
122
 
117
- * FIXED: Total order constraint on span.status=
123
+ - BREAKING CHANGE: Total order constraint on span.status=
124
+ - FIXED: Total order constraint on span.status=
118
125
 
119
- ### v0.18.0 / 2021-05-21
126
+ ## v0.18.0 / 2021-05-21
120
127
 
121
- * ADDED: Updated API dependency for 1.0.0.rc1
122
- * BREAKING CHANGE: Remove optional parent_context from in_span
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
- * FIXED: Remove optional parent_context from in_span
125
- * FIXED: Removed http.status_text attribute #750
133
+ ## v0.17.0 / 2021-04-22
126
134
 
127
- ### v0.17.0 / 2021-04-22
135
+ - (No significant changes)
128
136
 
129
- * (No significant changes)
137
+ ## v0.16.0 / 2021-03-17
130
138
 
131
- ### v0.16.0 / 2021-03-17
139
+ - FIXED: Example scripts now reference local common lib
140
+ - DOCS: Replace Gitter with GitHub Discussions
132
141
 
133
- * FIXED: Example scripts now reference local common lib
134
- * DOCS: Replace Gitter with GitHub Discussions
142
+ ## v0.15.0 / 2021-02-18
135
143
 
136
- ### v0.15.0 / 2021-02-18
144
+ - (No significant changes)
137
145
 
138
- * (No significant changes)
146
+ ## v0.14.0 / 2021-02-03
139
147
 
140
- ### v0.14.0 / 2021-02-03
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
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
151
+ ## v0.13.0 / 2021-01-29
143
152
 
144
- * ADDED: Replace getter and setter callables and remove rack specific propagators
153
+ - (No significant changes)
145
154
 
146
- ### v0.13.0 / 2021-01-29
155
+ ## v0.12.0 / 2020-12-24
147
156
 
148
- * (No significant changes)
157
+ - (No significant changes)
149
158
 
150
- ### v0.12.0 / 2020-12-24
159
+ ## v0.11.0 / 2020-12-11
151
160
 
152
- * (No significant changes)
161
+ - FIXED: Copyright comments to not reference year
153
162
 
154
- ### v0.11.0 / 2020-12-11
163
+ ## v0.10.0 / 2020-12-03
155
164
 
156
- * FIXED: Copyright comments to not reference year
165
+ - (No significant changes)
157
166
 
158
- ### v0.10.0 / 2020-12-03
167
+ ## v0.9.0 / 2020-11-27
159
168
 
160
- * (No significant changes)
169
+ - BREAKING CHANGE: Add timeout for force_flush and shutdown
170
+ - ADDED: Add timeout for force_flush and shutdown
161
171
 
162
- ### v0.9.0 / 2020-11-27
172
+ ## v0.8.0 / 2020-10-27
163
173
 
164
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
174
+ - BREAKING CHANGE: Remove 'canonical' from status codes
175
+ - FIXED: Remove 'canonical' from status codes
165
176
 
166
- * ADDED: Add timeout for force_flush and shutdown
177
+ ## v0.7.1 / 2020-10-08
167
178
 
168
- ### v0.8.0 / 2020-10-27
179
+ - FIXED: Set span name to sinatra.route
169
180
 
170
- * BREAKING CHANGE: Remove 'canonical' from status codes
181
+ ## v0.7.0 / 2020-10-07
171
182
 
172
- * FIXED: Remove 'canonical' from status codes
183
+ - FIXED: Default to sinatra.route for span name
184
+ - DOCS: Standardize top-level docs structure and readme
173
185
 
174
- ### v0.7.1 / 2020-10-08
186
+ ## v0.6.0 / 2020-09-10
175
187
 
176
- * FIXED: Set span name to sinatra.route
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
- In the OpenTelemetry ecosystem, HTTP semantic conventions have now reached a stable state. However, the initial Rack instrumentation was introduced before this stability was achieved, which resulted in HTTP attributes being based on an older version of the semantic conventions.
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 and ceases emitting the old conventions previously emitted by the instrumentation.
87
- - `http/dup` - Emits both the old and stable HTTP and networking conventions, enabling a phased rollout of the stable semantic conventions.
88
- - Default behavior (in the absence of either value) is to continue emitting the old HTTP and networking conventions the instrumentation previously emitted.
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
- # Contants patches for `render` method
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
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sinatra
10
- VERSION = '0.28.0'
10
+ VERSION = '0.30.0'
11
11
  end
12
12
  end
13
13
  end
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.28.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: 2025-10-22 00:00:00.000000000 Z
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.28.0/file/CHANGELOG.md
50
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/sinatra
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.28.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.2'
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: 3.4.19
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: []