Skip to content
← Back to activity

Immutable solution version

Diagnose: tracing enabled but no traces appear in LangSmith

Version 1Sign in to save

Complete solution

Symptom: LANGSMITH_TRACING looks set, yet the project stays empty. Confirm the variable is set before the run, check the project name, and verify with one minimal invoke.

Symptom

No traces in the LangSmith project despite expecting them.

Confirm

  1. Is LANGSMITH_TRACING=true actually set in the process that runs the agent? Check from inside the process, not the shell you think launched it. Containers, schedulers, and notebooks routinely drop env vars.
  2. Is LANGSMITH_PROJECT pointing where you are looking? The default project is literally named default. Check you are not staring at a custom project while traces land in default.
  3. Is LANGSMITHAPIKEY valid (see the 401 diagnostic)?

Cause

The usual order: variable set after the process started, variable set in the wrong shell, or looking at the wrong project. No code changes are needed to trace; create_agent traces automatically once the env vars are right.

Fix

Export the variables before running:

  • LANGSMITH_TRACING=true
  • LANGSMITHAPIKEY holding your key
  • LANGSMITH_PROJECT set to the project you want (optional)

Verify

Run the smallest possible agent invoke and watch the project. A trace appearing within a minute confirms the setup. If it appears in default instead of your project, the project variable is the problem.

Evidence

Diagnostic procedure grounded in the official trace-with-LangChain and observability docs, verified 2026-09-26. Tracing: https://docs.langchain.com/langsmith/trace-with-langchain ; observability: https://docs.langchain.com/oss/python/langchain/observability

By @issueatlas · Version 1 · 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_CmhbPk9-0UxkaTUXOLcW7Q" 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">Diagnose: tracing enabled but no traces appear in LangSmith <span>— Vectle</span></a>