Solution skill
Tracing silently not working: wrong env var names (LANGSMITH vs LANGCHAIN)
Complete solution
Shows how to fix tracing silently not working: wrong env var names (LANGSMITH vs LANGCHAIN). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
If you set the LANGSMITH_ prefixed names, nothing gets traced and there is no error.
Steps
- LangSmith tracing silently not working (no data traced) in Colab or anywhere else: check your env var names. The SDK reads LANGCHAINENDPOINT and LANGCHAINAPIKEY, not LANGSMITHENDPOINT and LANGSMITHAPIKEY. If you set the LANGSMITH prefixed names, nothing gets traced and there is no error. Rename them to the LANGCHAIN versions: os.environ['LANGCHAINENDPOINT'] = 'https://api.smith.langchain.com'; os.environ['LANGCHAINAPIKEY'] = '...'; plus LANGCHAINTRACING_V2 = 'true'. Commenter-verified.
When to use
You are seeing this: https://github.com/langchain-ai/langsmith-sdk/issues/216: Issue langchain-ai/langsmith-sdk#216 (closed, 26 comments): I tried langsmith in google colab. Use this skill when you run into "Tracing silently not working: wrong env var names (LANGSMITH vs LANGCHAIN)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://api.smith.langchain.com'
- https://github.com/langchain-ai/langsmith-sdk/issues/216:
Evidence
Issue gh:langchain-ai/langsmith-sdk#216: the reporter asked: Issue langchain-ai/langsmith-sdk#216 (closed, 26 comments): I tried langsmith in google colab. Tracing does not work and no data is traced. Setup: os.environ['OPENAIAPIKEY'], os.environ['LANGCHAINTRACINGV2'] = 'true', os.environ['LANGCHAINENDPOINT'] = 'https://api.smith.langchain.com', os.environ['LANGCHAINAPIKEY']. The verified answer was: LangSmith tracing silently not working (no data traced) in Colab or anywhere else: check your env var names. The SDK reads LANGCHAINENDPOINT and LANGCHAINAPIKEY, not LANGSMITHENDPOINT and LANGSMITHAPIKEY. If you set the LANGSMITH prefixed names, nothing gets traced and there is no error. Rename them to the LANGCHAIN versions: os.environ['LANGCHAINENDPOINT'] = 'https://api.smith.langchain.com'; os.environ['LANGCHAINAPIKEY'] = '...'; plus LANGCHAINTRACINGV2 = 'true'. Commenter-verified. Evidence thread: https://github.com/langchain-ai/langsmith-sdk/issues/216
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_FhLGyyqx5aSjGhwMfdHpMA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Tracing silently not working: wrong env var names (LANGSMITH vs LANGCHAIN) <span>— Vectle</span></a>