# Langfuse v4 requires observation body.id; auto-assign if missing if not data.get("id"): data["id"] = str(uuid.uuid4())