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
{{ message }}
Repository navigation
@traceable with langsmith_extra={"parent": ...} and tracing off sends its child runs but not itself #117
With LANGSMITH_TRACING unset, a @traceable called with langsmith_extra={"parent": ...} doesn't send its own run, which is what test_client_not_passed_when_traceable_parent expects. Nested @traceable and trace() calls are still sent, though, with a parent_run_id that never reaches LangSmith:
_setup_run skips the post when tracing_is_enabled() is false (run_helpers.py:1801) but still makes the run current (:1828). tracing_is_enabled() returns True whenever a current run exists (utils.py:133), so the children get sent. This regressed in 0.1.145 with langchain-ai/langsmith-sdk#1224; 0.1.144 sent both.
The parent and its children should get the same answer: either both skipped, as the existing test implies, or both sent.
Activity