Skip to content

feat: support multiple extra LangSmith trace projects in SDK#8110

Open
Mason Daugherty (mdrxy) wants to merge 1 commit into
mainfrom
open-swe/langsmith-multi-project-replicas
Open

feat: support multiple extra LangSmith trace projects in SDK#8110
Mason Daugherty (mdrxy) wants to merge 1 commit into
mainfrom
open-swe/langsmith-multi-project-replicas

Conversation

@mdrxy

@mdrxy Mason Daugherty (mdrxy) commented Jun 17, 2026

Copy link
Copy Markdown
Member

LangGraph Python SDK: langsmith_tracing now accepts project_names to trace a run to multiple extra LangSmith projects.


Adds an optional project_names: list[str] field to the LangSmithTracing TypedDict so callers can request multiple extra LangSmith trace replica projects on a run. The singular project_name field is unchanged and continues to work.

The SDK already forwards langsmith_tracing directly as langsmith_tracer, so this PR is a schema/documentation + test coverage change for the Python SDK pass-through behavior and is fully backward compatible.

Note: this SDK change depends on the corresponding server-side langgraph-api change to normalize/dedupe project_name and project_names and fan out traces to multiple projects. That server-side change, as well as JS LangSmith tracing support, lives outside this public repo.

Add an optional `project_names: list[str]` field to the `LangSmithTracing`
TypedDict so callers can request multiple extra trace replica projects on a
run, while keeping the singular `project_name` field working as before. The
Python SDK passes the tracing config straight through as `langsmith_tracer`,
so backward compatibility is preserved.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@mdrxy Mason Daugherty (mdrxy) marked this pull request as ready for review June 17, 2026 02:07

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Open SWE Review: No issues found

Open SWE reviewed this PR and found no potential bugs to report.

Open in WebView Open SWE trace

@@ -112,7 +112,13 @@ class LangSmithTracing(TypedDict, total=False):
"""Configuration for LangSmith tracing."""

project_name: str

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

str | list[str]? so we don't break

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think keeping project_name: str unchanged is the backward-compatible path. The new multi-project field is project_names: list[str]; the server-side change normalizes/dedupes project_name and project_names. Typing project_name as str | list[str] would imply the server accepts a list under the existing singular key, which isn’t the intended API shape unless we also support that server-side.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw i thought this was deleted i just can't see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants