opentelemetry-sdk 0.5.0 → 0.5.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: 1929c4e29a936b51b4f2eca8ec7b4e2f7a597e43e72039e6e963aa72cd00f65f
4
- data.tar.gz: cbf9a0ade97c3dab0a8005cf84729ab8d549c6f0768ea9446d8a71585d676d4f
3
+ metadata.gz: 3f952e49fadd62c0a174e8edfebff16e774a8421fd361c05a24af58402d2b267
4
+ data.tar.gz: e34fd801558f119a59e6399f1f66ac9408413af12bf72a8ab9788a1d2a303e61
5
5
  SHA512:
6
- metadata.gz: de2f88ace625de9e494a6800291462330c58d12e0ecac2e8a7a184a8c34382557639aea59eea3dbf16a603355c604446e00cd2b9fe8f2ad3cb009f21c68186cb
7
- data.tar.gz: 42342b8cee795fd241a650b2abae0b8f3f4f73a202605bdcce6ec861de5fe53325fc3e273fe8c06e386df4b42a76ab3d0667990a502f31a0636de733f62b2aef
6
+ metadata.gz: 7d67df753f0f6af7626833ab968994bcbf3c6fd387638fbd0290c46ead629e25a5ccb2c421cb86a9c129876f007c9f1ce0bbac148e5830223352768624079399
7
+ data.tar.gz: '07867ecc29a180417a4e2cc3243fd9cec2857390799192bc8e6b5be5641c4d64225ca5dcadf9311c23b73a4ab09729cca3006c3ee92aa39924d5887edf30ca3b'
@@ -16,7 +16,7 @@ module OpenTelemetry
16
16
 
17
17
  def initialize(probability, ignore_parent:, apply_to_remote_parent:, apply_to_all_spans:)
18
18
  @probability = probability
19
- @id_upper_bound = format('%016x', (probability * (2**64 - 1)).ceil)
19
+ @id_upper_bound = (probability * (2**64 - 1)).ceil
20
20
  @use_parent_sampled_flag = !ignore_parent
21
21
  @apply_to_remote_parent = apply_to_remote_parent
22
22
  @apply_to_all_spans = apply_to_all_spans
@@ -55,7 +55,7 @@ module OpenTelemetry
55
55
  end
56
56
 
57
57
  def sample_trace_id?(trace_id)
58
- @probability == 1.0 || trace_id[16, 16] < @id_upper_bound
58
+ @probability == 1.0 || trace_id[8, 8].unpack1('Q>') < @id_upper_bound
59
59
  end
60
60
  end
61
61
  end
@@ -7,6 +7,6 @@
7
7
  module OpenTelemetry
8
8
  module SDK
9
9
  ## Current OpenTelemetry version
10
- VERSION = '0.5.0'
10
+ VERSION = '0.5.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: 0.5.0
4
+ version: 0.5.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: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api