opentelemetry-api 1.2.2 → 1.2.4

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: b68df866cd6a0a88e8b0f5827c850ff3e9f37ae9863b4a8d47e6158402fd5d0a
4
- data.tar.gz: 4cc7c530b54324d424790512a9bed9dbcbd636c83a6d9d7213b524b3b3ebc874
3
+ metadata.gz: 6153576db575ab97d4a32e9ff9faf7b042353a7d5bc200a6342f9eeab567fe6b
4
+ data.tar.gz: b18156ff1ec12b988c6573fbe158bf0bb4538d7a02e9b01a1b67ced9aef9ef39
5
5
  SHA512:
6
- metadata.gz: 800b647bb5573d3a467efdc428b169c66c8a978d3f84e2b8670d2e05f20d6c226050aab727071da709c87610f35e8c7a59715a75cc27be6cdc0959bdaf70299c
7
- data.tar.gz: 9f4e8512e94efb0512cd57ed0566d0ed1b0f51481121e9252691cef18e8c6e2d21a578fe7c09bca5754e0c333dc9b72404c7ac9e6ad4a1cba13f42003a632bbb
6
+ metadata.gz: 5f975be4d0d07f7f9803e757cf5a23cbeb7e172f06dedf6bad8892956b4036c1a606e2ec73bb2f8f0a5d9fbf504cdfae21077ff657e0fea603c1d1dce1480cfe
7
+ data.tar.gz: 8b8ac1400b1eb86687411784c8a63bf5a4c41ba642e50e00a62d3694bb120243df2406e63336b83715e20c3674394241186c47371841ebc02231e94cb6ce6622
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release History: opentelemetry-api
2
2
 
3
+ ### v1.2.4 / 2024-02-06
4
+
5
+ * FIXED: SystemStackError in Composite Text Map Propagator (#1590)
6
+
7
+ ### v1.2.3 / 2023-09-18
8
+
9
+ * FIXED: Optimize span and trace ID generation
10
+ * FIXED: Small perf improvement to generate_r
11
+
3
12
  ### v1.2.2 / 2023-08-15
4
13
 
5
14
  * FIXED: Patch the issue for frozen string on ruby < 3.0 with string interpolation
@@ -97,7 +97,7 @@ module OpenTelemetry
97
97
  # @return [Array<String>] a list of fields that will be used by this propagator.
98
98
  def fields
99
99
  injectors = @injectors || @propagators
100
- injectors.flat_map(&fields).uniq
100
+ injectors.flat_map(&:fields).uniq
101
101
  end
102
102
  end
103
103
  end
@@ -26,10 +26,9 @@ module OpenTelemetry
26
26
  #
27
27
  # @return [String] a valid trace ID.
28
28
  def generate_trace_id
29
- loop do
30
- id = Random.bytes(16)
31
- return id unless id == INVALID_TRACE_ID
32
- end
29
+ id = Random.bytes(16)
30
+ id = Random.bytes(16) while id == INVALID_TRACE_ID
31
+ id
33
32
  end
34
33
 
35
34
  # Generates a valid span identifier, an 8-byte string with at least one
@@ -37,10 +36,9 @@ module OpenTelemetry
37
36
  #
38
37
  # @return [String] a valid span ID.
39
38
  def generate_span_id
40
- loop do
41
- id = Random.bytes(8)
42
- return id unless id == INVALID_SPAN_ID
43
- end
39
+ id = Random.bytes(8)
40
+ id = Random.bytes(8) while id == INVALID_SPAN_ID
41
+ id
44
42
  end
45
43
 
46
44
  # Returns the current span from the current or provided context
@@ -6,5 +6,5 @@
6
6
 
7
7
  module OpenTelemetry
8
8
  ## Current OpenTelemetry version
9
- VERSION = '1.2.2'
9
+ VERSION = '1.2.4'
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
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-08-15 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ipsa
@@ -201,10 +201,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
201
201
  licenses:
202
202
  - Apache-2.0
203
203
  metadata:
204
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.2/file.CHANGELOG.html
204
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.4/file.CHANGELOG.html
205
205
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/api
206
206
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
207
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.2
207
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.4
208
208
  post_install_message:
209
209
  rdoc_options: []
210
210
  require_paths: