migration: establish exact preserved app baseline

This commit is contained in:
leefer
2026-07-30 23:51:48 +08:00
commit e4a9b2e647
389 changed files with 126625 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
from __future__ import annotations
import re
import uuid
REQUEST_ID_PATTERN = re.compile(r"[A-Za-z0-9._-]{8,80}")
def correlation_id(supplied: str = "") -> str:
value = str(supplied or "").strip()
return value if REQUEST_ID_PATTERN.fullmatch(value) else uuid.uuid4().hex