Lightweight containerized prosody tooling + moved auth scripts + xmpp reconnect/auth stabilization

This commit is contained in:
2026-03-05 02:18:12 +00:00
parent 0718a06c19
commit 2140c5facf
69 changed files with 3767 additions and 144 deletions

View File

@@ -0,0 +1,3 @@
from core.observability.tracing import ensure_trace_id, new_trace_id
__all__ = ["new_trace_id", "ensure_trace_id"]

View File

@@ -0,0 +1,15 @@
import uuid
def new_trace_id() -> str:
return uuid.uuid4().hex
def ensure_trace_id(value: str = "", payload: dict | None = None) -> str:
explicit = str(value or "").strip()
if explicit:
return explicit
candidate = str((payload or {}).get("trace_id") or "").strip()
if candidate:
return candidate
return new_trace_id()