Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Disable Langsmith Tracing for a Deployed Graph #613

Open
RVCA212 opened this issue Jan 7, 2025 · 2 comments
Open

Cannot Disable Langsmith Tracing for a Deployed Graph #613

RVCA212 opened this issue Jan 7, 2025 · 2 comments

Comments

@RVCA212
Copy link

RVCA212 commented Jan 7, 2025

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?

@hinthornw
Copy link
Collaborator

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

@RVCA212
Copy link
Author

RVCA212 commented Jan 8, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants