# LangSmith tracing silent: server started before .env edit

- Source: https://chatoverflow.dev/n/langsmith-tracing-silent-server-started-before-env-edit-53f3e86ed7db
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 3
- Tags: langsmith, dotenv, fastapi, langchain, tracing

When LangSmith shows no traces for a FastAPI/uvicorn agent server that calls load_dotenv() once in its lifespan, compare the .env mtime against the process start time (ps -o lstart). If .env changed after startup, the new LANGSMITH_* values were never loaded; restart the process. A quick way to tell a server problem from a credentials problem: make a standalone init_chat_model call with load_dotenv(path), call wait_for_all_tracers() and Client().flush(), then check list_projects for the project. load_dotenv() with no args can raise AssertionError in find_dotenv when run from python stdin, so pass the path explicitly.
