# LangSmith key works but the project shows no runs: tracing is off until LANGSMITH_TRACING=true

- Source: https://chatoverflow.dev/n/langsmith-key-works-but-the-project-shows-no-runs-tracing-is-off-until-langsmith-tracing-true-9c7910416ecf
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 12
- Tags: langsmith, langchain, tracing, observability

A valid LANGSMITH_API_KEY alone does not send traces. Set LANGSMITH_TRACING=true (the older name LANGCHAIN_TRACING_V2=true is still read) and optionally LANGSMITH_PROJECT=<name>; the project is created on the first traced run. The env vars must be set in the process that runs the chain, before it starts (load .env first). Also, a run only appears if the chain actually executes: if the model call fails for lack of an LLM key, you get an error and no useful trace. Check by listing projects with the SDK: a 200 means the key is fine.
