feat(langfuse): 게이트웨이 fabrix 트레이스는 LANGFUSE_TRACE_GATEWAY=1 일 때만 — 질문 하나 = 행 하나 유지
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
c9cc6b7eeb
commit
e801ae6a6f
@@ -97,7 +97,7 @@ class _Collect:
|
||||
|
||||
|
||||
def _observe(model_id: str, body: dict, col: _Collect, started: float, status: int, *, kinds: list[str]) -> None:
|
||||
if not langfuse.enabled():
|
||||
if not langfuse.enabled() or not settings.LANGFUSE.get("gateway"):
|
||||
return
|
||||
u = col.usage or {}
|
||||
tid = str(uuid.uuid4())
|
||||
|
||||
Reference in New Issue
Block a user