Skip to content

Commit 0eb5c82

Browse files
committed
default
1 parent 3afaf35 commit 0eb5c82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/trace/src/main/java/io/opentelemetry/sdk/trace/internal/ExtendedIdGenerator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ public interface ExtendedIdGenerator extends IdGenerator {
2020
* Returns {@code true} if the {@link IdGenerator} returns trace IDs with the right-most 7 bytes
2121
* being random.
2222
*/
23-
boolean randomTraceId();
23+
default boolean randomTraceId() {
24+
// Assume IDs are random since in practice, they are.
25+
return true;
26+
}
2427
}

0 commit comments

Comments
 (0)