lib/opentelemetry/sdk/trace/samplers/consistent_probability_based.rb in opentelemetry-sdk-experimental-0.1.0 vs lib/opentelemetry/sdk/trace/samplers/consistent_probability_based.rb in opentelemetry-sdk-experimental-0.1.1
- old
+ new
@@ -67,15 +67,9 @@
end
end
private
- def generate_r(trace_id)
- x = trace_id[8, 8].unpack1('Q>') | 0x3
- clz = 64 - x.bit_length
- clz
- end
-
def probabilistic_p
if Random.rand < @p_ceil_probability
@p_ceil
else
@p_floor