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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f952e49fadd62c0a174e8edfebff16e774a8421fd361c05a24af58402d2b267
|
4
|
+
data.tar.gz: e34fd801558f119a59e6399f1f66ac9408413af12bf72a8ab9788a1d2a303e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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[
|
58
|
+
@probability == 1.0 || trace_id[8, 8].unpack1('Q>') < @id_upper_bound
|
59
59
|
end
|
60
60
|
end
|
61
61
|
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.
|
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-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|