You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug(graph): @Traceable _maybe_write_thread_title so LangSmith captures errors (#492)
LangGraph Platform's stdout (where PR #491's print() lands) isn't
reachable via the LangSmith Runs API. After firing a probe against
prod (thread 019e475a-4add-79a3-95b1-348525d79b0e) we confirmed the
title stays null AND no actionable error surfaces in any API we can
query.
Wrap the helper with @langsmith.traceable so it becomes a child run
in the trace tree, and convert all early-returns to typed dict
returns (skipped/wrote_title/error_type/error_message). The error
branch now captures type, message, and the sdk_url that was used —
all of which show up in the run's `outputs` field when queried via
the LangSmith Runs API.
Cleaner than stdout grep, gives us the proximate cause without
needing platform log access.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments