fix(langfuse): 루트 span 에도 observation.input/output — 트레이스 화면 입출력 표시용

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lee-hyeon-cheol
2026-09-22 13:54:36 +09:00
co-authored by Claude Fable 5.1
parent 55f2e8fb60
commit 678ea2482f
2 changed files with 3 additions and 1 deletions
@@ -87,6 +87,8 @@ def trace(trace_id: str, name: str, *, userId: str = "", sessionId: str = "", in
"langfuse.session.id": sessionId,
"langfuse.trace.input": input,
"langfuse.trace.output": output,
"langfuse.observation.input": input, # 루트 span 본문에도 — 트레이스 화면이 루트 span 의 입출력을 보여줌(실측)
"langfuse.observation.output": output,
"langfuse.trace.tags": tags,
**{f"langfuse.trace.metadata.{k}": v for k, v in (metadata or {}).items()},
}