opentelemetry-sdk 1.7.0 → 1.8.1

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: b174010feb5b2db02f6a570513c7f4f15bedf408bffa4fdfd2860ebaa63b5088
4
- data.tar.gz: c578f416859da33bbcb8388ba2378045b505fcc7d2eba3dedee122038fc4be49
3
+ metadata.gz: 98c229a5e6e808bc22f37dabb886735e090f8509a10ec203b0c632217d7c056d
4
+ data.tar.gz: 191c3f49f198b01bb2f74159789171398bb5f618bccdba6e232d228d63cb3f20
5
5
  SHA512:
6
- metadata.gz: 8ea250333b9de53564146823594d0c3a97c479b87c264b5461e1d2acf0146b40d1a07458e7c624666a9526f9e5d777e8bd346784758777001b4a256a97ddc2a6
7
- data.tar.gz: 3c21e3d936ca4f2ba520ab3c3157523fecec61416694e49a794da2e6f797763a7254953b6d937294eae83369db05e779d8362861b8331059fd1f0cdb77e90cf2
6
+ metadata.gz: 5437d53a51a0a8ea92b054cbead5ec8df2e180b7e4a705e66a686fe143eb3892acf7348c3518ffca134dc74e199b8a38825ac0be2c1e02cb63dce693ff9b5572
7
+ data.tar.gz: 061cd13d4cd7c55ed0b4490caf37776929ea2e7de59a5af768fdf3343db2f17b21bcbd1c19e4d3c77f890b6ba613b8c5b365f04b1dcce13fc0d09d2300c0d801
data/CHANGELOG.md CHANGED
@@ -1,277 +1,285 @@
1
1
  # Release History: opentelemetry-sdk
2
2
 
3
+ ### v1.8.1 / 2025-08-14
4
+
5
+ - FIXED: Remove patch constraint on Zipkin exporter
6
+ - DOCS: Fix Resource merge documentation
7
+
8
+ ### v1.8.0 / 2025-02-25
9
+
10
+ - ADDED: Support 3.1 Min Version
11
+
3
12
  ### v1.7.0 / 2025-02-04
4
13
 
5
- * ADDED: Add compatibility with env OTEL_SDK_DISABLED
14
+ - ADDED: Add compatibility with env OTEL_SDK_DISABLED
6
15
 
7
16
  ### v1.6.0 / 2024-12-04
8
17
 
9
- * ADDED: Add hooks to configure logs
18
+ - ADDED: Add hooks to configure logs
10
19
 
11
20
  ### v1.5.0 / 2024-07-24
12
21
 
13
- * ADDED: Add add_link to span api/sdk
14
- * FIXED: Update `untraced` to suppress logging "Calling finish on an ended Span" warnings
22
+ - ADDED: Add add_link to span api/sdk
23
+ - FIXED: Update `untraced` to suppress logging "Calling finish on an ended Span" warnings
15
24
 
16
25
  ### v1.4.1 / 2024-03-21
17
26
 
18
- * FIXED: ForwardingLogger should forward block param.
27
+ - FIXED: ForwardingLogger should forward block param.
19
28
 
20
29
  ### v1.4.0 / 2024-01-25
21
30
 
22
- * ADDED: Add spans to Trace::ExportError
31
+ - ADDED: Add spans to Trace::ExportError
23
32
 
24
33
  ### v1.3.2 / 2024-01-23
25
34
 
26
- * FIXED: Reduce allocations on GraphQL hot paths
27
- * FIXED: Add context to metrics reporting of buffer-full events
35
+ - FIXED: Reduce allocations on GraphQL hot paths
36
+ - FIXED: Add context to metrics reporting of buffer-full events
28
37
 
29
38
  ### v1.3.1 / 2023-11-02
30
39
 
31
- * FIXED: Spec compliance for span attribute limit
32
- * FIXED: BatchSpanProcessor#force_flush: purge inherited spans even on shutdown
40
+ - FIXED: Spec compliance for span attribute limit
41
+ - FIXED: BatchSpanProcessor#force_flush: purge inherited spans even on shutdown
33
42
 
34
43
  ### v1.3.0 / 2023-06-08
35
44
 
36
- * BREAKING CHANGE: Remove support for EoL Ruby 2.7
45
+ - BREAKING CHANGE: Remove support for EoL Ruby 2.7
37
46
 
38
- * ADDED: Remove support for EoL Ruby 2.7
39
- * FIXED: SDK requires opentelemetry-common 0.19.7
47
+ - ADDED: Remove support for EoL Ruby 2.7
48
+ - FIXED: SDK requires opentelemetry-common 0.19.7
40
49
 
41
50
  ### v1.2.1 / 2023-05-30
42
51
 
43
- * FIXED: Untraced only works with parent-based sampler
44
- * DOCS: Improve formatting of usage examples in OpenTelemetry SDK rubydocs
52
+ - FIXED: Untraced only works with parent-based sampler
53
+ - DOCS: Improve formatting of usage examples in OpenTelemetry SDK rubydocs
45
54
 
46
55
  ### v1.2.0 / 2022-09-14
47
56
 
48
- * ADDED: Support OTEL_PROPAGATORS=none
49
- * ADDED: Support OTEL_ATTRIBUTE_{COUNT,VALUE_LENGTH}_LIMIT env vars
50
- * ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
51
- * FIXED: SpanLimits setting event attributes length limit
57
+ - ADDED: Support OTEL_PROPAGATORS=none
58
+ - ADDED: Support OTEL*ATTRIBUTE*{COUNT,VALUE_LENGTH}\_LIMIT env vars
59
+ - ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
60
+ - FIXED: SpanLimits setting event attributes length limit
52
61
 
53
62
  ### v1.1.0 / 2022-05-26
54
63
 
55
- * BREAKING CHANGE: This requires upgrading both the SDK and Instrumentation gem in tandem
56
-
64
+ - BREAKING CHANGE: This requires upgrading both the SDK and Instrumentation gem in tandem
57
65
 
58
66
  ### v1.0.3 / 2022-05-02
59
67
 
60
- * ADDED: Truncate the strings in an array attribute value if length_limit is configured
61
- * FIXED: Update attribute length limit env var name to match spec
62
- * FIXED: Warning about Struct initialization in Ruby 3.2+
63
- * FIXED: Warn on unsupported otlp transport protocols
64
- * FIXED: Only allow certain types of Numeric values as attribute values.
68
+ - ADDED: Truncate the strings in an array attribute value if length_limit is configured
69
+ - FIXED: Update attribute length limit env var name to match spec
70
+ - FIXED: Warning about Struct initialization in Ruby 3.2+
71
+ - FIXED: Warn on unsupported otlp transport protocols
72
+ - FIXED: Only allow certain types of Numeric values as attribute values.
65
73
 
66
74
  ### v1.0.2 / 2021-12-01
67
75
 
68
- * FIXED: Default span kind
69
- * FIXED: Use monotonic clock where possible
76
+ - FIXED: Default span kind
77
+ - FIXED: Use monotonic clock where possible
70
78
 
71
79
  ### v1.0.1 / 2021-10-29
72
80
 
73
- * FIXED: Add unexpected error handlign in BSP and OTLP exporter (#995)
81
+ - FIXED: Add unexpected error handlign in BSP and OTLP exporter (#995)
74
82
 
75
83
  ### v1.0.0 / 2021-09-29
76
84
 
77
- * (No significant changes)
85
+ - (No significant changes)
78
86
 
79
87
  ### v1.0.0.rc3 / 2021-08-12
80
88
 
81
- * BREAKING CHANGE: Remove optional parent_context from in_span
82
- * BREAKING CHANGE: Replace Time.now with Process.clock_gettime
83
- * BREAKING CHANGE: Refactor Baggage to remove Noop*
84
- * BREAKING CHANGE: Remove unnecessary readers from SDK Tracer
85
- * BREAKING CHANGE: Total order constraint on span.status=
86
- * BREAKING CHANGE: Use auto-generated resource constants in sdk and resource_detectors
87
- * BREAKING CHANGE: Span limits env vars
88
-
89
- * ADDED: Add Tracer.non_recording_span to API
90
- * ADDED: Add unnamed tracer warning message
91
- * ADDED: Allow disabling of install messages
92
- * ADDED: Make API's NoopTextMapPropagator private
93
- * ADDED: Use auto-generated resource constants in sdk and resource_detectors
94
- * ADDED: Allow selecting multiple exporter
95
- * ADDED: Add explicit BSP export error
96
- * FIXED: Remove optional parent_context from in_span
97
- * FIXED: Replace Time.now with Process.clock_gettime
98
- * FIXED: Rename cloud.zone to cloud.availability_zone
99
- * FIXED: Improve attribute error messages
100
- * FIXED: Refactor Baggage to remove Noop*
101
- * FIXED: Support OTEL_SERVICE_NAME env var
102
- * FIXED: Remove unnecessary readers from SDK Tracer
103
- * FIXED: Total order constraint on span.status=
104
- * FIXED: Flakey tracer provider test
105
- * FIXED: Split lock in TracerProvider
106
- * FIXED: Span limits env vars
107
- * FIXED: Prune invalid links
108
- * DOCS: Update docs to rely more on environment variable configuration
89
+ - BREAKING CHANGE: Remove optional parent_context from in_span
90
+ - BREAKING CHANGE: Replace Time.now with Process.clock_gettime
91
+ - BREAKING CHANGE: Refactor Baggage to remove Noop\*
92
+ - BREAKING CHANGE: Remove unnecessary readers from SDK Tracer
93
+ - BREAKING CHANGE: Total order constraint on span.status=
94
+ - BREAKING CHANGE: Use auto-generated resource constants in sdk and resource_detectors
95
+ - BREAKING CHANGE: Span limits env vars
96
+
97
+ - ADDED: Add Tracer.non_recording_span to API
98
+ - ADDED: Add unnamed tracer warning message
99
+ - ADDED: Allow disabling of install messages
100
+ - ADDED: Make API's NoopTextMapPropagator private
101
+ - ADDED: Use auto-generated resource constants in sdk and resource_detectors
102
+ - ADDED: Allow selecting multiple exporter
103
+ - ADDED: Add explicit BSP export error
104
+ - FIXED: Remove optional parent_context from in_span
105
+ - FIXED: Replace Time.now with Process.clock_gettime
106
+ - FIXED: Rename cloud.zone to cloud.availability_zone
107
+ - FIXED: Improve attribute error messages
108
+ - FIXED: Refactor Baggage to remove Noop\*
109
+ - FIXED: Support OTEL_SERVICE_NAME env var
110
+ - FIXED: Remove unnecessary readers from SDK Tracer
111
+ - FIXED: Total order constraint on span.status=
112
+ - FIXED: Flakey tracer provider test
113
+ - FIXED: Split lock in TracerProvider
114
+ - FIXED: Span limits env vars
115
+ - FIXED: Prune invalid links
116
+ - DOCS: Update docs to rely more on environment variable configuration
109
117
 
110
118
  ### v1.0.0.rc2 / 2021-06-23
111
119
 
112
- * BREAKING CHANGE: Remove optional parent_context from in_span [729](https://github.com/open-telemetry/opentelemetry-ruby/pull/729)
113
- * BREAKING CHANGE: Replace Time.now with Process.clock_gettime [717](https://github.com/open-telemetry/opentelemetry-ruby/pull/717)
114
- * BREAKING CHANGE: Refactor Baggage to remove Noop* [800](https://github.com/open-telemetry/opentelemetry-ruby/pull/800)
115
- * BREAKING CHANGE: Remove unnecessary readers from SDK Tracer [820](https://github.com/open-telemetry/opentelemetry-ruby/pull/820)
120
+ - BREAKING CHANGE: Remove optional parent_context from in_span [729](https://github.com/open-telemetry/opentelemetry-ruby/pull/729)
121
+ - BREAKING CHANGE: Replace Time.now with Process.clock_gettime [717](https://github.com/open-telemetry/opentelemetry-ruby/pull/717)
122
+ - BREAKING CHANGE: Refactor Baggage to remove Noop\* [800](https://github.com/open-telemetry/opentelemetry-ruby/pull/800)
123
+ - BREAKING CHANGE: Remove unnecessary readers from SDK Tracer [820](https://github.com/open-telemetry/opentelemetry-ruby/pull/820)
116
124
  - Tracer no longer surfaces attribute readers for the name, version, or tracer_provider
117
- * BREAKING CHANGE: Total order constraint on span.status= [805](https://github.com/open-telemetry/opentelemetry-ruby/pull/805)
125
+ - BREAKING CHANGE: Total order constraint on span.status= [805](https://github.com/open-telemetry/opentelemetry-ruby/pull/805)
118
126
 
119
- * ADDED: Add Tracer.non_recording_span to API [799](https://github.com/open-telemetry/opentelemetry-ruby/pull/799)
120
- * ADDED: Add unnamed tracer warning message [830](https://github.com/open-telemetry/opentelemetry-ruby/pull/830)
121
- * ADDED: Allow disabling of install messages [831](https://github.com/open-telemetry/opentelemetry-ruby/pull/831)
122
- * FIXED: Rename cloud.zone to cloud.availability_zone [734](https://github.com/open-telemetry/opentelemetry-ruby/pull/734)
123
- * FIXED: Improve attribute error messages [742](https://github.com/open-telemetry/opentelemetry-ruby/pull/742)
124
- * FIXED: Support OTEL_SERVICE_NAME env var [806]https://github.com/open-telemetry/opentelemetry-ruby/pull/806
125
- * FIXED: Flakey tracer provider test
127
+ - ADDED: Add Tracer.non_recording_span to API [799](https://github.com/open-telemetry/opentelemetry-ruby/pull/799)
128
+ - ADDED: Add unnamed tracer warning message [830](https://github.com/open-telemetry/opentelemetry-ruby/pull/830)
129
+ - ADDED: Allow disabling of install messages [831](https://github.com/open-telemetry/opentelemetry-ruby/pull/831)
130
+ - FIXED: Rename cloud.zone to cloud.availability_zone [734](https://github.com/open-telemetry/opentelemetry-ruby/pull/734)
131
+ - FIXED: Improve attribute error messages [742](https://github.com/open-telemetry/opentelemetry-ruby/pull/742)
132
+ - FIXED: Support OTEL_SERVICE_NAME env var [806]https://github.com/open-telemetry/opentelemetry-ruby/pull/806
133
+ - FIXED: Flakey tracer provider test
126
134
 
127
135
  ### v1.0.0.rc1 / 2021-05-21
128
136
 
129
- * BREAKING CHANGE: Remove optional parent_context from in_span
130
- * BREAKING CHANGE: Replace Time.now with Process.clock_gettime
137
+ - BREAKING CHANGE: Remove optional parent_context from in_span
138
+ - BREAKING CHANGE: Replace Time.now with Process.clock_gettime
131
139
 
132
- * FIXED: Remove optional parent_context from in_span
133
- * FIXED: Replace Time.now with Process.clock_gettime
134
- * FIXED: Rename cloud.zone to cloud.availability_zone
135
- * FIXED: Improve attribute error messages
140
+ - FIXED: Remove optional parent_context from in_span
141
+ - FIXED: Replace Time.now with Process.clock_gettime
142
+ - FIXED: Rename cloud.zone to cloud.availability_zone
143
+ - FIXED: Improve attribute error messages
136
144
 
137
145
  ### v0.17.0 / 2021-04-22
138
146
 
139
- * BREAKING CHANGE: Replace TextMapInjector/TextMapExtractor pairs with a TextMapPropagator.
147
+ - BREAKING CHANGE: Replace TextMapInjector/TextMapExtractor pairs with a TextMapPropagator.
140
148
 
141
149
  [Check the propagator documentation](https://open-telemetry.github.io/opentelemetry-ruby/) for the new usage.
142
150
 
143
- * ADDED: Add zipkin exporter
144
- * ADDED: Processors validate exporters on init.
145
- * ADDED: Add configurable truncation of span and event attribute values
146
- * ADDED: Add simple 'recording' attr_accessor to InMemorySpanExporter
147
- * FIXED: Typo in error message
148
- * FIXED: Improve configuration error reporting
149
- * FIXED: Refactor propagators to add #fields
151
+ - ADDED: Add zipkin exporter
152
+ - ADDED: Processors validate exporters on init.
153
+ - ADDED: Add configurable truncation of span and event attribute values
154
+ - ADDED: Add simple 'recording' attr_accessor to InMemorySpanExporter
155
+ - FIXED: Typo in error message
156
+ - FIXED: Improve configuration error reporting
157
+ - FIXED: Refactor propagators to add #fields
150
158
 
151
159
  ### v0.16.0 / 2021-03-17
152
160
 
153
- * BREAKING CHANGE: Update SDK BaggageManager to match API
154
- * BREAKING CHANGE: Implement Exporter#force_flush
161
+ - BREAKING CHANGE: Update SDK BaggageManager to match API
162
+ - BREAKING CHANGE: Implement Exporter#force_flush
155
163
 
156
- * ADDED: Add force_flush to SDK's TracerProvider
157
- * ADDED: Add k8s node to gcp resource detector
158
- * ADDED: Add console option for OTEL_TRACES_EXPORTER
159
- * ADDED: Span#add_attributes
160
- * ADDED: Implement Exporter#force_flush
161
- * FIXED: Update SDK BaggageManager to match API
162
- * DOCS: Replace Gitter with GitHub Discussions
164
+ - ADDED: Add force_flush to SDK's TracerProvider
165
+ - ADDED: Add k8s node to gcp resource detector
166
+ - ADDED: Add console option for OTEL_TRACES_EXPORTER
167
+ - ADDED: Span#add_attributes
168
+ - ADDED: Implement Exporter#force_flush
169
+ - FIXED: Update SDK BaggageManager to match API
170
+ - DOCS: Replace Gitter with GitHub Discussions
163
171
 
164
172
  ### v0.15.0 / 2021-02-18
165
173
 
166
- * BREAKING CHANGE: Streamline processor pipeline
174
+ - BREAKING CHANGE: Streamline processor pipeline
167
175
 
168
- * ADDED: Add instrumentation config validation
169
- * FIXED: Streamline processor pipeline
170
- * FIXED: OTEL_TRACE -> OTEL_TRACES env vars
171
- * FIXED: Change limits from 1000 to 128
172
- * FIXED: OTEL_TRACES_EXPORTER and OTEL_PROPAGATORS
173
- * FIXED: Add thread error handling to the BSP
174
- * DOCS: Clarify nil attribute values not allowed
176
+ - ADDED: Add instrumentation config validation
177
+ - FIXED: Streamline processor pipeline
178
+ - FIXED: OTEL_TRACE -> OTEL_TRACES env vars
179
+ - FIXED: Change limits from 1000 to 128
180
+ - FIXED: OTEL_TRACES_EXPORTER and OTEL_PROPAGATORS
181
+ - FIXED: Add thread error handling to the BSP
182
+ - DOCS: Clarify nil attribute values not allowed
175
183
 
176
184
  ### v0.14.0 / 2021-02-03
177
185
 
178
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
186
+ - BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
179
187
 
180
- * ADDED: Replace getter and setter callables and remove rack specific propagators
188
+ - ADDED: Replace getter and setter callables and remove rack specific propagators
181
189
 
182
190
  ### v0.13.1 / 2021-02-01
183
191
 
184
- * FIXED: Leaky test
185
- * FIXED: Allow env var override of service.name
192
+ - FIXED: Leaky test
193
+ - FIXED: Allow env var override of service.name
186
194
 
187
195
  ### v0.13.0 / 2021-01-29
188
196
 
189
- * BREAKING CHANGE: Remove MILLIS from BatchSpanProcessor vars
197
+ - BREAKING CHANGE: Remove MILLIS from BatchSpanProcessor vars
190
198
 
191
- * ADDED: Process.runtime resource
192
- * ADDED: Provide default resource in SDK
193
- * ADDED: Add optional attributes to record_exception
194
- * FIXED: Resource.merge consistency
195
- * FIXED: Remove MILLIS from BatchSpanProcessor vars
199
+ - ADDED: Process.runtime resource
200
+ - ADDED: Provide default resource in SDK
201
+ - ADDED: Add optional attributes to record_exception
202
+ - FIXED: Resource.merge consistency
203
+ - FIXED: Remove MILLIS from BatchSpanProcessor vars
196
204
 
197
205
  ### v0.12.1 / 2021-01-13
198
206
 
199
- * FIXED: Fix several BatchSpanProcessor errors related to fork safety
200
- * FIXED: Define default value for traceid ratio
207
+ - FIXED: Fix several BatchSpanProcessor errors related to fork safety
208
+ - FIXED: Define default value for traceid ratio
201
209
 
202
210
  ### v0.12.0 / 2020-12-24
203
211
 
204
- * ADDED: Structured error handling
205
- * ADDED: Pluggable ID generation
206
- * FIXED: BSP dropped span buffer full reporting
207
- * FIXED: Implement SDK environment variables
208
- * FIXED: Remove incorrect TODO
212
+ - ADDED: Structured error handling
213
+ - ADDED: Pluggable ID generation
214
+ - FIXED: BSP dropped span buffer full reporting
215
+ - FIXED: Implement SDK environment variables
216
+ - FIXED: Remove incorrect TODO
209
217
 
210
218
  ### v0.11.1 / 2020-12-16
211
219
 
212
- * FIXED: BSP dropped span buffer full reporting
220
+ - FIXED: BSP dropped span buffer full reporting
213
221
 
214
222
  ### v0.11.0 / 2020-12-11
215
223
 
216
- * ADDED: Metrics reporting from trace export
217
- * FIXED: Copyright comments to not reference year
224
+ - ADDED: Metrics reporting from trace export
225
+ - FIXED: Copyright comments to not reference year
218
226
 
219
227
  ### v0.10.0 / 2020-12-03
220
228
 
221
- * BREAKING CHANGE: Allow samplers to modify tracestate
229
+ - BREAKING CHANGE: Allow samplers to modify tracestate
222
230
 
223
- * FIXED: Allow samplers to modify tracestate
231
+ - FIXED: Allow samplers to modify tracestate
224
232
 
225
233
  ### v0.9.0 / 2020-11-27
226
234
 
227
- * BREAKING CHANGE: Pass full Context to samplers
228
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
235
+ - BREAKING CHANGE: Pass full Context to samplers
236
+ - BREAKING CHANGE: Add timeout for force_flush and shutdown
229
237
 
230
- * ADDED: Add OTEL_RUBY_BSP_START_THREAD_ON_BOOT env var
231
- * ADDED: Add timeout for force_flush and shutdown
232
- * FIXED: Signal at batch_size
233
- * FIXED: SDK Span.recording? after finish
234
- * FIXED: Pass full Context to samplers
235
- * DOCS: Add documentation on usage scenarios for span processors
238
+ - ADDED: Add OTEL_RUBY_BSP_START_THREAD_ON_BOOT env var
239
+ - ADDED: Add timeout for force_flush and shutdown
240
+ - FIXED: Signal at batch_size
241
+ - FIXED: SDK Span.recording? after finish
242
+ - FIXED: Pass full Context to samplers
243
+ - DOCS: Add documentation on usage scenarios for span processors
236
244
 
237
245
  ### v0.8.0 / 2020-10-27
238
246
 
239
- * BREAKING CHANGE: Move context/span methods to Trace module
240
- * BREAKING CHANGE: Remove 'canonical' from status codes
241
- * BREAKING CHANGE: Assorted SpanContext fixes
247
+ - BREAKING CHANGE: Move context/span methods to Trace module
248
+ - BREAKING CHANGE: Remove 'canonical' from status codes
249
+ - BREAKING CHANGE: Assorted SpanContext fixes
242
250
 
243
- * FIXED: Move context/span methods to Trace module
244
- * FIXED: Remove 'canonical' from status codes
245
- * FIXED: Assorted SpanContext fixes
251
+ - FIXED: Move context/span methods to Trace module
252
+ - FIXED: Remove 'canonical' from status codes
253
+ - FIXED: Assorted SpanContext fixes
246
254
 
247
255
  ### v0.7.0 / 2020-10-07
248
256
 
249
- * ADDED: Add service_name setter to configurator
250
- * ADDED: Add service_version setter to configurator
251
- * FIXED: Fork safety for batch processor
252
- * FIXED: Don't generate a span ID unnecessarily
253
- * DOCS: Fix Configurator#add_span_processor
254
- * DOCS: Standardize toplevel docs structure and readme
257
+ - ADDED: Add service_name setter to configurator
258
+ - ADDED: Add service_version setter to configurator
259
+ - FIXED: Fork safety for batch processor
260
+ - FIXED: Don't generate a span ID unnecessarily
261
+ - DOCS: Fix Configurator#add_span_processor
262
+ - DOCS: Standardize toplevel docs structure and readme
255
263
 
256
264
  ### v0.6.0 / 2020-09-10
257
265
 
258
- * BREAKING CHANGE: Rename Resource labels to attributes
259
- * BREAKING CHANGE: Export resource from Span/SpanData instead of library_resource
260
- * BREAKING CHANGE: Rename CorrelationContext to Baggage
261
- * BREAKING CHANGE: Rename Text* to TextMap* (propagators, injectors, extractors)
262
- * BREAKING CHANGE: Rename span.record_error to span.record_exception
263
- * BREAKING CHANGE: Update samplers to match spec
264
- * BREAKING CHANGE: Remove support for lazy event creation
265
-
266
- * ADDED: Add OTLP exporter
267
- * ADDED: Add support for OTEL_LOG_LEVEL env var
268
- * FIXED: Rename Resource labels to attributes
269
- * ADDED: Environment variable resource detection
270
- * ADDED: BatchSpanProcessor environment variable support
271
- * FIXED: Remove semver prefix
272
- * FIXED: Docs for array valued attributes
273
- * ADDED: Add hex_trace_id and hex_span_id helpers to SpanData
274
- * FIXED: Fix ProbabilitySampler
275
- * ADDED: Implement GetCorrelations
276
- * FIXED: Change default Sampler to ParentOrElse(AlwaysOn)
277
- * FIXED: Fix probability sampler
266
+ - BREAKING CHANGE: Rename Resource labels to attributes
267
+ - BREAKING CHANGE: Export resource from Span/SpanData instead of library_resource
268
+ - BREAKING CHANGE: Rename CorrelationContext to Baggage
269
+ - BREAKING CHANGE: Rename Text* to TextMap* (propagators, injectors, extractors)
270
+ - BREAKING CHANGE: Rename span.record_error to span.record_exception
271
+ - BREAKING CHANGE: Update samplers to match spec
272
+ - BREAKING CHANGE: Remove support for lazy event creation
273
+
274
+ - ADDED: Add OTLP exporter
275
+ - ADDED: Add support for OTEL_LOG_LEVEL env var
276
+ - FIXED: Rename Resource labels to attributes
277
+ - ADDED: Environment variable resource detection
278
+ - ADDED: BatchSpanProcessor environment variable support
279
+ - FIXED: Remove semver prefix
280
+ - FIXED: Docs for array valued attributes
281
+ - ADDED: Add hex_trace_id and hex_span_id helpers to SpanData
282
+ - FIXED: Fix ProbabilitySampler
283
+ - ADDED: Implement GetCorrelations
284
+ - FIXED: Change default Sampler to ParentOrElse(AlwaysOn)
285
+ - FIXED: Fix probability sampler
@@ -93,7 +93,7 @@ module OpenTelemetry
93
93
  end
94
94
 
95
95
  # Returns a new, merged {Resource} by merging the current {Resource} with
96
- # the other {Resource}. In case of a collision, the current {Resource}
96
+ # the other {Resource}. In case of a collision, the other {Resource}
97
97
  # takes precedence
98
98
  #
99
99
  # @param [Resource] other The other resource to merge
@@ -81,7 +81,7 @@ module OpenTelemetry
81
81
  # Must be within [0.0, 1.0].
82
82
  # @raise [ArgumentError] if ratio is out of range
83
83
  def self.trace_id_ratio_based(ratio)
84
- raise ArgumentError, 'ratio must be in range [0.0, 1.0]' unless (0.0..1.0).include?(ratio)
84
+ raise ArgumentError, 'ratio must be in range [0.0, 1.0]' unless (0.0..1.0).cover?(ratio)
85
85
 
86
86
  TraceIdRatioBased.new(ratio)
87
87
  end
@@ -7,6 +7,6 @@
7
7
  module OpenTelemetry
8
8
  module SDK
9
9
  ## Current OpenTelemetry version
10
- VERSION = '1.7.0'
10
+ VERSION = '1.8.1'
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.1
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-02-04 00:00:00.000000000 Z
11
+ date: 2025-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 5.15.0
103
+ version: '5.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 5.15.0
110
+ version: '5.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: opentelemetry-exporter-zipkin
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.19.0
117
+ version: '0.19'
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: 0.19.0
124
+ version: '0.19'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: opentelemetry-instrumentation-base
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -294,10 +294,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
294
294
  licenses:
295
295
  - Apache-2.0
296
296
  metadata:
297
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.7.0/file.CHANGELOG.html
297
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.8.1/file.CHANGELOG.html
298
298
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/sdk
299
299
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
300
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.7.0
300
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.8.1
301
301
  post_install_message:
302
302
  rdoc_options: []
303
303
  require_paths:
@@ -306,14 +306,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
306
  requirements:
307
307
  - - ">="
308
308
  - !ruby/object:Gem::Version
309
- version: '3.0'
309
+ version: '3.1'
310
310
  required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  requirements:
312
312
  - - ">="
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.2.33
316
+ rubygems_version: 3.3.27
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: A stats collection and distributed tracing framework