structured logging around key workflows and docs for operational readiness

This commit is contained in:
2026-04-26 17:02:24 +02:00
parent 2902e362df
commit 99bb851ca8
8 changed files with 288 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
from __future__ import annotations
import json
import logging
from typing import Any
LOGGER_NAME = "repo_registry.operations"
def log_operation(event: str, **fields: Any) -> None:
payload = {"event": event, **fields}
logging.getLogger(LOGGER_NAME).info(
json.dumps(payload, sort_keys=True, default=str)
)