Only generate ids up to 2^63 - 1
MODIFY
dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java
dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java
@@ -614,7 +614,7 @@ public class DDTracer implements io.opentracing.Tracer, Closeable, datadog.trace
// case
BigInteger value;
do {
- value = new BigInteger(64, ThreadLocalRandom.current());
+ value = new BigInteger(63, ThreadLocalRandom.current());
} while (value.signum() == 0);
return value;

Only generate ids up to 2^63 - 1