opentelemetry-api 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/opentelemetry/trace.rb +6 -8
- data/lib/opentelemetry/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d815d2f6c451dd7a9fdf8b8a52d787c1bc987a1b50410c9cd1b83f45ad5b0c81
|
4
|
+
data.tar.gz: b6f8f18ee2775139a7db71a579a25b70da4731db45da8d8ce85c344fd299b4f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45bb8a51d0c888adf710350cfa852876803759b852fb91b8842f972aa1608bd8ef89cd7433303418e9cf150ed8fbcf2a32722258a1e096537ec0263c43b53364
|
7
|
+
data.tar.gz: 51190de116416d20d4d3b333b4f0f819d865669ac5357c92c96c8e11e1397fb6feee3497f88d22e717cf74d50e5d8814bb42b5a8f7a01c353f0da5d31b146307
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release History: opentelemetry-api
|
2
2
|
|
3
|
+
### v1.2.3 / 2023-09-18
|
4
|
+
|
5
|
+
* FIXED: Optimize span and trace ID generation
|
6
|
+
* FIXED: Small perf improvement to generate_r
|
7
|
+
|
3
8
|
### v1.2.2 / 2023-08-15
|
4
9
|
|
5
10
|
* FIXED: Patch the issue for frozen string on ruby < 3.0 with string interpolation
|
data/lib/opentelemetry/trace.rb
CHANGED
@@ -26,10 +26,9 @@ module OpenTelemetry
|
|
26
26
|
#
|
27
27
|
# @return [String] a valid trace ID.
|
28
28
|
def generate_trace_id
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
41
|
-
|
42
|
-
|
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
|
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.
|
4
|
+
version: 1.2.3
|
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-
|
11
|
+
date: 2023-09-19 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.
|
204
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.3/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.
|
207
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.3
|
208
208
|
post_install_message:
|
209
209
|
rdoc_options: []
|
210
210
|
require_paths:
|