lib/opentelemetry/sdk/trace/samplers/consistent_probability_tracestate.rb in opentelemetry-sdk-experimental-0.3.1 vs lib/opentelemetry/sdk/trace/samplers/consistent_probability_tracestate.rb in opentelemetry-sdk-experimental-0.3.2

- old
+ new

@@ -104,10 +104,10 @@ def decimal(str) str.to_i if !str.nil? && DECIMAL.match?(str) end def generate_r(trace_id) - x = trace_id.unpack1('Q>', offset: 8) | 0x3 + x = trace_id.unpack1('@8Q>') | 0x3 64 - x.bit_length end end end end