Trace every model call to Langfuse #274

Merged
teahubxyz merged 1 commits from claude/langfuse into main 2026-10-27 14:59:31 +00:00
Owner

chat() is the one chokepoint for every model call (Claude + Venice), so it now also sends a Langfuse generation per call — model, input/output, tokens, timing, errors — grouped into one trace per Actions run (tagged repo + workflow, linking back to the run).

  • Best effort: 10s timeout, any failure prints langfuse: skipped and the run carries on.
  • No-op until LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY exist (to be promoted to teahubxyz org secrets); US host by default, LANGFUSE_HOST overrides.
  • Env wired into astra, doctor, heartbeat, mention, quc, venture, venture-loop.
  • test_time: ALL OK.
`chat()` is the one chokepoint for every model call (Claude + Venice), so it now also sends a Langfuse generation per call — model, input/output, tokens, timing, errors — grouped into one trace per Actions run (tagged repo + workflow, linking back to the run). - Best effort: 10s timeout, any failure prints `langfuse: skipped` and the run carries on. - No-op until `LANGFUSE_PUBLIC_KEY` / `LANGFUSE_SECRET_KEY` exist (to be promoted to teahubxyz org secrets); US host by default, `LANGFUSE_HOST` overrides. - Env wired into astra, doctor, heartbeat, mention, quc, venture, venture-loop. - test_time: ALL OK.
teahubxyz added 1 commit 2026-10-27 14:52:40 +00:00
teahubxyz merged commit 0e7f294cf4 into main 2026-10-27 14:59:31 +00:00
Sign in to join this conversation.