opentelemetry-sdk-experimental 0.2.0 → 0.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: 51a09141af347e88764533ef7ae7a072d1fe45935c61a04ffec0f92d535d90a7
4
- data.tar.gz: 641bb04a0687ac7c67de416569270b394246f37bc9245435e53b954b93f0a4a4
3
+ metadata.gz: 22cfd99719f727295d133b3585c7fceb4af3eedb6f9141080ced876c388b2766
4
+ data.tar.gz: 7d1cc8a2febbc335d7f86b187bb31fce53361dc908db8375858ecf30e631ec32
5
5
  SHA512:
6
- metadata.gz: b531cbb38ca9d102377250b501b4ed4309336bc49432c0f8fb8070795d9849406fcb93324563fed99e0e9e4fc0dce30f55d7abe65ac639f2ae7a0e0b128c37fb
7
- data.tar.gz: f833b0e558897fe05ec52dbe79ecf0a73d45b4783ed46f992fc73f7b556a8fe56bb806964115a35b8bfc80fcfa4de7b6b95fc31ef142241f2a9c11c6766275ac
6
+ metadata.gz: 6ac0743b9fd974f12cb82d01a547f2a060afbf9904e6d7fe2a6a95705a96944bbfc2a0b67c68918bb049b8cc28f0952761306c952c242f5f71ed3e059f017f13
7
+ data.tar.gz: 4eb50f5f8fb686b70426bcfeae1654e172a90f9d7abd56e2c7735ff06cf43ebc536e48a31cb6728a69e839f480d9b5673acd0184ccd12b83d8b06f825835eeaf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-sdk-experimental
2
2
 
3
+ ### v0.3.1 / 2023-09-18
4
+
5
+ * FIXED: Small perf improvement to generate_r
6
+
7
+ ### v0.3.0 / 2023-06-08
8
+
9
+ * BREAKING CHANGE: Remove support for EoL Ruby 2.7
10
+
11
+ * ADDED: Remove support for EoL Ruby 2.7
12
+
3
13
  ### v0.2.0 / 2023-05-30
4
14
 
5
15
  * FIXED: Consistent probability sampler init
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module SDK
9
9
  module Experimental
10
10
  # Current OpenTelemetry experimental sdk version
11
- VERSION = '0.2.0'
11
+ VERSION = '0.3.1'
12
12
  end
13
13
  end
14
14
  end
@@ -13,7 +13,7 @@ module OpenTelemetry
13
13
  # The ConsistentProbabilityTraceState module implements Tracestate parsing,
14
14
  # validation and manipulation for the consistent probability-based samplers.
15
15
  module ConsistentProbabilityTraceState
16
- DECIMAL = /\A\d+\z/.freeze
16
+ DECIMAL = /\A\d+\z/
17
17
  MAX_LIST_LENGTH = 256 # Defined by https://www.w3.org/TR/trace-context/
18
18
  private_constant(:DECIMAL, :MAX_LIST_LENGTH)
19
19
 
@@ -77,7 +77,7 @@ module OpenTelemetry
77
77
  yield(p, r, rest)
78
78
  end
79
79
 
80
- def update_tracestate(tracestate, p, r, rest) # rubocop:disable Naming/UncommunicativeMethodParamName
80
+ def update_tracestate(tracestate, p, r, rest)
81
81
  if p.nil? && r.nil? && rest.nil?
82
82
  tracestate.delete('ot')
83
83
  elsif p.nil? && r.nil?
@@ -97,7 +97,7 @@ module OpenTelemetry
97
97
  end
98
98
  end
99
99
 
100
- def invariant(p, r, sampled) # rubocop:disable Naming/UncommunicativeMethodParamName
100
+ def invariant(p, r, sampled)
101
101
  ((p <= r) == sampled) || (sampled && (p == 63))
102
102
  end
103
103
 
@@ -106,9 +106,8 @@ module OpenTelemetry
106
106
  end
107
107
 
108
108
  def generate_r(trace_id)
109
- x = trace_id[8, 8].unpack1('Q>') | 0x3
110
- clz = 64 - x.bit_length
111
- clz
109
+ x = trace_id.unpack1('Q>', offset: 8) | 0x3
110
+ 64 - x.bit_length
112
111
  end
113
112
  end
114
113
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-sdk-experimental
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.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-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.73.0
131
+ version: 1.51.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.73.0
138
+ version: 1.51.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -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-sdk-experimental/v0.2.0/file.CHANGELOG.html
204
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk-experimental/v0.3.1/file.CHANGELOG.html
205
205
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/sdk_experimental
206
206
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
207
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk-experimental/v0.2.0
207
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk-experimental/v0.3.1
208
208
  post_install_message:
209
209
  rdoc_options: []
210
210
  require_paths:
@@ -213,14 +213,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
- version: 2.6.0
216
+ version: '3.0'
217
217
  required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - ">="
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  requirements: []
223
- rubygems_version: 3.1.6
223
+ rubygems_version: 3.2.33
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: A stats collection and distributed tracing framework