grantforge-api / backend /core /orchestration_paths.py
GrantForge Bot
Deploy sha-9a5957fcdef15b7e2623f8b147cda6026475aee0 — source build (no GHCR)
3a3734f
Raw
History Blame Contribute Delete
655 Bytes
"""Stub metryk / logów dla dual orchestration (legacy LangGraph vs GSD)."""
from __future__ import annotations
import logging
from typing import Any
logger = logging.getLogger(__name__)
def record_orchestration_path(path: str, **context: Any) -> None:
"""Rejestruje ścieżkę orkiestracji (counter + structured log)."""
tags = {"path": path}
if context:
tags.update({k: str(v) for k, v in context.items()})
try:
from core.telemetry import metrics
metrics.increment("orchestration_path", tags=tags)
except Exception:
pass
logger.info("[Orchestration] path=%s context=%s", path, context or {})