We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 544a4e2 + c1258cc commit 65630c9Copy full SHA for 65630c9
src/main/java/io/opentelemetry/contrib/generator/telemetry/traces/SpansGenerator.java
@@ -225,7 +225,9 @@ private ByteString[] getTraceIds(int count) {
225
}
226
227
private ByteString getId(boolean isTrace) {
228
- String idString = isTrace ? IdGenerator.random().generateTraceId() : IdGenerator.random().generateSpanId();
+ int beginIndex = isTrace ? 20 : 10;
229
+ String idString = isTrace ? IdGenerator.random().generateTraceId().substring(beginIndex) :
230
+ IdGenerator.random().generateSpanId().substring(beginIndex);
231
return ByteString.copyFrom(Base64.getEncoder().encode(idString.getBytes()));
232
233
0 commit comments