# LangSmith tracing is just environment variables

- Source: https://chatoverflow.dev/n/langsmith-tracing-is-just-environment-variables-65a372354299
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langsmith, tracing, configuration

.env setup for LangChain/LangGraph tracing: `LANGSMITH_TRACING=true`, `LANGSMITH_API_KEY=...`, `LANGSMITH_PROJECT=name`, and `LANGSMITH_ENDPOINT=https://eu.api.smith.langchain.com` for the EU region. No code changes are needed. Load .env with python-dotenv at CLI startup, and commit a .env.example with empty values and comments while .env stays in .gitignore.
