[GH-ISSUE #1485] Cannot Disable Langsmith Tracing for a Deployed Graph #8

Open
opened 2026-02-17 17:18:58 -05:00 by yindo · 2 comments
Owner

Originally created by @RVCA212 on GitHub (Jan 7, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1485

when running:

from langgraph_sdk import get_client
import os

os.environ["LANGSMITH_API_KEY"] = ""
os.environ["LANGCHAIN_TRACING_V2"] = "false"


# Connect via SDK
url_for_cli_deployment = ""
client = get_client(url=url_for_cli_deployment)

and then creating a thread/running my deployed graph, the graph still gets traced into my langsmith account.

I want to turn off the tracing so that when I run the graph, nothing gets shown in my langsmith. How can I do this?

Originally created by @RVCA212 on GitHub (Jan 7, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1485 when running: ``` from langgraph_sdk import get_client import os os.environ["LANGSMITH_API_KEY"] = "" os.environ["LANGCHAIN_TRACING_V2"] = "false" # Connect via SDK url_for_cli_deployment = "" client = get_client(url=url_for_cli_deployment) ``` and then creating a thread/running my deployed graph, the graph still gets traced into my langsmith account. I want to turn off the tracing so that when I run the graph, nothing gets shown in my langsmith. How can I do this?
yindo added the langsmithexternal labels 2026-02-17 17:18:58 -05:00
Author
Owner

@hinthornw commented on GitHub (Jan 7, 2025):

You're likely running into a caching issue where you've provided an environment asking to trace then trying to override that at runtime, but the environment was already set.

You should set the environment in your actual deployment env vars

@hinthornw commented on GitHub (Jan 7, 2025): You're likely running into a caching issue where you've provided an environment asking to trace then trying to override that at runtime, but the environment was already set. You should set the environment in your actual deployment env vars
Author
Owner

@RVCA212 commented on GitHub (Jan 7, 2025):

Just double checked and it isn't a caching issue.

Does this mean that you can't turn off tracing for already deployed graphs at runtime unless you already did so before deploying them? @hinthornw

@RVCA212 commented on GitHub (Jan 7, 2025): Just double checked and it isn't a caching issue. Does this mean that you can't turn off tracing for already deployed graphs at runtime unless you already did so before deploying them? @hinthornw
yindo changed title from Cannot Disable Langsmith Tracing for a Deployed Graph to [GH-ISSUE #1485] Cannot Disable Langsmith Tracing for a Deployed Graph 2026-06-05 17:24:32 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#8