This commit is contained in:
2026-08-25 19:07:34 +08:00
parent 65c01f8b3d
commit 7d36759f3f
28 changed files with 613 additions and 16 deletions
@@ -51,4 +51,12 @@ class TraceParentTest {
assertThat(child.value()).matches(
"00-4bf92f3577b34da6a3ce929d0e0e4736-[0-9a-f]{16}-01");
}
@Test
void trustedPersistedUuidNormalizationDoesNotBroadenHttpParsing() {
assertThat(TraceParent.normalizeTrustedTraceId("550E8400-E29B-41D4-A716-446655440000"))
.contains("550e8400e29b41d4a716446655440000");
assertThat(TraceParent.parse(
"00-550E8400E29B41D4A716446655440000-00f067aa0ba902b7-01")).isEmpty();
}
}