opentelemetry-common 0.20.1 → 0.22.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 +4 -4
- data/CHANGELOG.md +35 -27
- data/README.md +1 -1
- data/lib/opentelemetry/common/utilities.rb +13 -4
- data/lib/opentelemetry/common/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f833aca100323ec9f3d880783e5e58413bff96419d8936ada5f176d6bb89f4
|
4
|
+
data.tar.gz: 9bdc0f18120012da8c4f3198d03eabe0d42438ab7736fec764dc0b4020ed967a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42422bc057c56d3a31c36cb1b1a5cb395620d2c9656bbe92191ecae627e286727b431f7d5cfb25cdb562acfb77833f85a5475a05f5448e5782f7b14e2610ecca
|
7
|
+
data.tar.gz: b91bfc8e859e75c555559806d2a2d05b128628fa86bf66b8fb6df3b834c2f2f196d3df60f293eb524757efc44f21b9b901dcdc1ad280b6c6ca45b828bd842d8b
|
data/CHANGELOG.md
CHANGED
@@ -1,90 +1,98 @@
|
|
1
1
|
# Release History: opentelemetry-common
|
2
2
|
|
3
|
+
### v0.22.0 / 2025-02-25
|
4
|
+
|
5
|
+
- ADDED: Support 3.1 Min Version
|
6
|
+
|
7
|
+
### v0.21.0 / 2024-05-08
|
8
|
+
|
9
|
+
- ADDED: Untraced method updated to support both block and non block structured calls
|
10
|
+
|
3
11
|
### v0.20.1 / 2024-02-06
|
4
12
|
|
5
|
-
|
13
|
+
- FIXED: Patch the issue for frozen string on ruby < 3.0 with string interpolation
|
6
14
|
|
7
15
|
### v0.20.0 / 2023-06-08
|
8
16
|
|
9
|
-
|
17
|
+
- BREAKING CHANGE: Remove support for EoL Ruby 2.7
|
10
18
|
|
11
|
-
|
19
|
+
- ADDED: Remove support for EoL Ruby 2.7
|
12
20
|
|
13
21
|
### v0.19.7 / 2023-05-30
|
14
22
|
|
15
|
-
|
23
|
+
- FIXED: Untraced only works with parent-based sampler
|
16
24
|
|
17
25
|
### v0.19.6 / 2022-05-18
|
18
26
|
|
19
|
-
|
27
|
+
- (No significant changes)
|
20
28
|
|
21
29
|
### v0.19.5 / 2022-05-10
|
22
30
|
|
23
|
-
|
31
|
+
- FIXED: Common changelog
|
24
32
|
|
25
33
|
### v0.19.4 / 2022-05-08
|
26
34
|
|
27
|
-
|
28
|
-
|
35
|
+
- FIXED: Check that a variable is a string before truncating
|
36
|
+
- FIXED: Attribute length limit. only truncate strings and strings in arrays
|
29
37
|
|
30
38
|
### v0.19.3 / 2021-12-01
|
31
39
|
|
32
|
-
|
40
|
+
- FIXED: Change net attribute names to match the semantic conventions spec for http
|
33
41
|
|
34
42
|
### v0.19.2 / 2021-09-29
|
35
43
|
|
36
|
-
|
44
|
+
- (No significant changes)
|
37
45
|
|
38
46
|
### v0.19.1 / 2021-08-12
|
39
47
|
|
40
|
-
|
48
|
+
- (No significant changes)
|
41
49
|
|
42
50
|
### v0.19.0 / 2021-06-23
|
43
51
|
|
44
|
-
|
52
|
+
- ADDED: Add Tracer.non_recording_span to API
|
45
53
|
|
46
54
|
### v0.18.0 / 2021-05-21
|
47
55
|
|
48
|
-
|
56
|
+
- BREAKING CHANGE: Replace Time.now with Process.clock_gettime
|
49
57
|
|
50
|
-
|
58
|
+
- FIXED: Replace Time.now with Process.clock_gettime
|
51
59
|
|
52
60
|
### v0.17.0 / 2021-04-22
|
53
61
|
|
54
|
-
|
55
|
-
|
62
|
+
- ADDED: Add zipkin exporter
|
63
|
+
- ADDED: Processors validate exporters on init.
|
56
64
|
|
57
65
|
### v0.16.0 / 2021-03-17
|
58
66
|
|
59
|
-
|
60
|
-
|
61
|
-
|
67
|
+
- ADDED: Instrument lmdb gem
|
68
|
+
- FIXED: Remove passwords from http.url
|
69
|
+
- DOCS: Replace Gitter with GitHub Discussions
|
62
70
|
|
63
71
|
### v0.15.0 / 2021-02-18
|
64
72
|
|
65
|
-
|
73
|
+
- (No significant changes)
|
66
74
|
|
67
75
|
### v0.14.0 / 2021-02-03
|
68
76
|
|
69
|
-
|
77
|
+
- (No significant changes)
|
70
78
|
|
71
79
|
### v0.13.0 / 2021-01-29
|
72
80
|
|
73
|
-
|
81
|
+
- ADDED: Add untraced wrapper to common utils
|
74
82
|
|
75
83
|
### v0.12.0 / 2020-12-24
|
76
84
|
|
77
|
-
|
85
|
+
- (No significant changes)
|
78
86
|
|
79
87
|
### v0.11.0 / 2020-12-11
|
80
88
|
|
81
|
-
|
82
|
-
|
89
|
+
- ADDED: Move utf8 encoding to common utils
|
90
|
+
- FIXED: Copyright comments to not reference year
|
83
91
|
|
84
92
|
### v0.10.0 / 2020-12-03
|
85
93
|
|
86
|
-
|
94
|
+
- FIXED: Common gem should depend on api gem
|
87
95
|
|
88
96
|
### v0.9.0 / 2020-11-27
|
89
97
|
|
90
|
-
|
98
|
+
- Initial release.
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
7
|
+
require 'uri'
|
8
|
+
|
7
9
|
module OpenTelemetry
|
8
10
|
module Common
|
9
11
|
# Utilities contains common helpers.
|
@@ -86,10 +88,17 @@ module OpenTelemetry
|
|
86
88
|
end
|
87
89
|
end
|
88
90
|
|
89
|
-
# Disables tracing within the provided block
|
90
|
-
|
91
|
-
|
92
|
-
|
91
|
+
# Disables tracing within the provided block
|
92
|
+
# If no block is provided instead returns an
|
93
|
+
# untraced ctx.
|
94
|
+
#
|
95
|
+
# @param [optional Context] context Accepts an explicit context, defaults to current
|
96
|
+
def untraced(context = Context.current)
|
97
|
+
context = context.set_value(UNTRACED_KEY, true)
|
98
|
+
if block_given?
|
99
|
+
Context.with_current(context) { |ctx| yield ctx }
|
100
|
+
else
|
101
|
+
context
|
93
102
|
end
|
94
103
|
end
|
95
104
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.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:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.65'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
96
|
+
version: '1.65'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,11 +160,11 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
160
160
|
licenses:
|
161
161
|
- Apache-2.0
|
162
162
|
metadata:
|
163
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-common/v0.
|
163
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-common/v0.22.0/file.CHANGELOG.html
|
164
164
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/common
|
165
165
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
166
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-common/v0.
|
167
|
-
post_install_message:
|
166
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-common/v0.22.0
|
167
|
+
post_install_message:
|
168
168
|
rdoc_options: []
|
169
169
|
require_paths:
|
170
170
|
- lib
|
@@ -172,15 +172,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
172
172
|
requirements:
|
173
173
|
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: '3.
|
175
|
+
version: '3.1'
|
176
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
|
-
rubygems_version: 3.
|
183
|
-
signing_key:
|
182
|
+
rubygems_version: 3.3.27
|
183
|
+
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: Common helpers for OpenTelemetry
|
186
186
|
test_files: []
|