opentelemetry-sdk 1.2.1 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b3929809dfb23b087387864352e6fdb690fc24b99cfd3e236f710b8b5b01eb4
4
- data.tar.gz: 11630ddd0ead48711a68b534de8e75d05395d9d9d2f43177d6c2465b17ff7f2a
3
+ metadata.gz: 2a170a385c24de9a417323b40bee2d07f8040bdf2535e08ee4f5cf3ac5ce440c
4
+ data.tar.gz: 8f2bf92d634725f8863e551522dc06e0ccb562e08b1741529cb1f3633cfd344b
5
5
  SHA512:
6
- metadata.gz: 7756b25f8fd77c81dfd3d824fee54dd4a74c1afb1ca6c47a345ad02b2fd58de0654a7a21680a3ade0d70b3e77ca1006c4b3d36a361e6e5e59507b037d9041274
7
- data.tar.gz: cac44fe7f43d2ef5309de35eb3af9a4420bbe6f9ee49ca1ab2ba59d2a539699ed6712277b265ca5225290c648ea07a9a82cd44aa4ec537af0b951ea01764d5f5
6
+ metadata.gz: 652201b97d3ff1f384a0f101f882d7dbf1cbc8ab6e402a75d3a029784cef5e655cda907df6066d69e2af511933a59323f430ede8903c442d2f267f7cd9c52ac8
7
+ data.tar.gz: 91321cf005b589ffc0e2715d63ea03fad1369e8b3288a9f1493c3847e4f32077167d3cee31fc61fba35c6f8718bd5ac999e2ede13a521a8f6991eca6e7e393d9
data/CHANGELOG.md CHANGED
@@ -1,34 +1,46 @@
1
1
  # Release History: opentelemetry-sdk
2
2
 
3
+ ### v1.3.1 / 2023-11-02
4
+
5
+ * FIXED: Spec compliance for span attribute limit
6
+ * FIXED: BatchSpanProcessor#force_flush: purge inherited spans even on shutdown
7
+
8
+ ### v1.3.0 / 2023-06-08
9
+
10
+ * BREAKING CHANGE: Remove support for EoL Ruby 2.7
11
+
12
+ * ADDED: Remove support for EoL Ruby 2.7
13
+ * FIXED: SDK requires opentelemetry-common 0.19.7
14
+
3
15
  ### v1.2.1 / 2023-05-30
4
16
 
5
- * FIXED: Untraced only works with parent-based sampler
6
- * DOCS: Improve formatting of usage examples in OpenTelemetry SDK rubydocs
17
+ * FIXED: Untraced only works with parent-based sampler
18
+ * DOCS: Improve formatting of usage examples in OpenTelemetry SDK rubydocs
7
19
 
8
20
  ### v1.2.0 / 2022-09-14
9
21
 
10
- * ADDED: Support OTEL_PROPAGATORS=none
11
- * ADDED: Support OTEL_ATTRIBUTE_{COUNT,VALUE_LENGTH}_LIMIT env vars
12
- * ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
13
- * FIXED: SpanLimits setting event attributes length limit
22
+ * ADDED: Support OTEL_PROPAGATORS=none
23
+ * ADDED: Support OTEL_ATTRIBUTE_{COUNT,VALUE_LENGTH}_LIMIT env vars
24
+ * ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
25
+ * FIXED: SpanLimits setting event attributes length limit
14
26
 
15
27
  ### v1.1.0 / 2022-05-26
16
28
 
17
- * BREAKING CHANGE: This requires upgrading both the SDK and Instrumentation gem in tandem
29
+ * BREAKING CHANGE: This requires upgrading both the SDK and Instrumentation gem in tandem
18
30
 
19
31
 
20
32
  ### v1.0.3 / 2022-05-02
21
33
 
22
34
  * ADDED: Truncate the strings in an array attribute value if length_limit is configured
23
- * FIXED: Update attribute length limit env var name to match spec
24
- * FIXED: Warning about Struct initialization in Ruby 3.2+
25
- * FIXED: Warn on unsupported otlp transport protocols
26
- * FIXED: Only allow certain types of Numeric values as attribute values.
35
+ * FIXED: Update attribute length limit env var name to match spec
36
+ * FIXED: Warning about Struct initialization in Ruby 3.2+
37
+ * FIXED: Warn on unsupported otlp transport protocols
38
+ * FIXED: Only allow certain types of Numeric values as attribute values.
27
39
 
28
40
  ### v1.0.2 / 2021-12-01
29
41
 
30
- * FIXED: Default span kind
31
- * FIXED: Use monotonic clock where possible
42
+ * FIXED: Default span kind
43
+ * FIXED: Use monotonic clock where possible
32
44
 
33
45
  ### v1.0.1 / 2021-10-29
34
46
 
@@ -100,10 +100,10 @@ module OpenTelemetry
100
100
  # @param [optional Numeric] timeout An optional timeout in seconds.
101
101
  # @return [Integer] SUCCESS if no error occurred, FAILURE if a
102
102
  # non-specific failure occurred, TIMEOUT if a timeout occurred.
103
- def force_flush(timeout: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength
103
+ def force_flush(timeout: nil) # rubocop:disable Metrics/MethodLength
104
104
  start_time = OpenTelemetry::Common::Utilities.timeout_timestamp
105
105
  snapshot = lock do
106
- reset_on_fork if @keep_running
106
+ reset_on_fork(restart_thread: @keep_running)
107
107
  spans.shift(spans.size)
108
108
  end
109
109
  until snapshot.empty?
@@ -347,8 +347,14 @@ module OpenTelemetry
347
347
  def trim_span_attributes(attrs)
348
348
  return if attrs.nil?
349
349
 
350
- excess = attrs.size - @span_limits.attribute_count_limit
351
- excess.times { attrs.shift } if excess.positive?
350
+ if attrs.size > @span_limits.attribute_count_limit
351
+ n = @span_limits.attribute_count_limit
352
+ attrs.delete_if do |_key, _value|
353
+ n -= 1
354
+ n.negative?
355
+ end
356
+ end
357
+
352
358
  truncate_attribute_values(attrs, @span_limits.attribute_length_limit)
353
359
  nil
354
360
  end
@@ -7,6 +7,6 @@
7
7
  module OpenTelemetry
8
8
  module SDK
9
9
  ## Current OpenTelemetry version
10
- VERSION = '1.2.1'
10
+ VERSION = '1.3.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.2.1
4
+ version: 1.3.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.19.3
33
+ version: '0.20'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.19.3
40
+ version: '0.20'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-registry
43
43
  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.2.1/file.CHANGELOG.html
297
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.3.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.2.1
300
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.3.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: 2.6.0
309
+ version: '3.0'
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.1.6
316
+ rubygems_version: 3.2.33
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: A stats collection and distributed tracing framework