import time import uuid def generate_trace_id(): return f"{uuid.uuid4().hex[:8]}-{int(time.time() * 1000)}"