Parse trace/span id as BigInteger rather than letting msgpack parse it

This commit is contained in:
Isak W 2018-10-16 23:07:50 +02:00
parent 6b0e43b32d
commit 484d54d796
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.ref.WeakReference;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
@ -419,7 +420,7 @@ public class DDSpan implements Span, MutableSpan {
public void serialize(
final String value, final JsonGenerator gen, final SerializerProvider provider)
throws IOException {
gen.writeNumber(value);
gen.writeNumber(new BigInteger(value));
}
}
}