Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import datadog.opentracing.DDSpanContext;
import datadog.opentracing.DDTracer;
import datadog.opentracing.StringCachingBigInteger;
import datadog.trace.api.Config;
import io.opentracing.SpanContext;
import io.opentracing.propagation.TextMapExtract;
Expand Down Expand Up @@ -117,7 +118,7 @@ public SpanContext extract(final TextMapExtract carrier) {
*/
static BigInteger validateUInt64BitsID(final String value, final int radix)
throws IllegalArgumentException {
final BigInteger parsedValue = new BigInteger(value, radix);
final BigInteger parsedValue = new StringCachingBigInteger(value, radix);
if (parsedValue.compareTo(DDTracer.TRACE_ID_MIN) < 0
|| parsedValue.compareTo(DDTracer.TRACE_ID_MAX) > 0) {
throw new IllegalArgumentException(
Expand Down