Skip to content

Commit

Permalink
Remove exception on traceIds of length 15 (#3471)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogierslag authored Aug 18, 2022
1 parent 4b7f03f commit bb0a133
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zipkin/src/main/java/zipkin2/Span.java
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@ public static String normalizeTraceId(String traceId) {
if (length > 32) throw new IllegalArgumentException("traceId.length > 32");
int zeros = validateHexAndReturnZeroPrefix(traceId);
if (zeros == length) throw new IllegalArgumentException("traceId is all zeros");
if (length == 15) throw new RuntimeException("WTF");
if (length == 32 || length == 16) {
if (length == 32 && zeros >= 16) return traceId.substring(16);
return traceId;
Expand Down

0 comments on commit bb0a133

Please sign in to comment.