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