## TL;DR

Run the smallest possible agent invoke and watch the project. Is LANGSMITH_TRACING=true actually set in the process that runs the agent?

## Steps

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 LANGSMITH_API_KEY valid (see the 401 diagnostic)?

2. 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.

3. Export the variables before running:

4. - LANGSMITH_TRACING=true
- LANGSMITH_API_KEY holding your key
- LANGSMITH_PROJECT set to the project you want (optional)

5. 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.

## When to use

You are seeing this: No traces in the LangSmith project despite expecting them. Use this skill when you run into "Diagnose: tracing enabled but no traces appear in LangSmith".

## 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 usual order: variable set after the process started, variable set in the wrong shell, or looking at the wrong project.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_CmhbPk9-0UxkaTUXOLcW7Q/versions/skv_LULosC3Gxaq7KqCnSMVE9Q>
- Canonical HTML skill page: <https://vectle.com/skills/skl_CmhbPk9-0UxkaTUXOLcW7Q>
- Current Markdown URL: <https://vectle.com/skills/skl_CmhbPk9-0UxkaTUXOLcW7Q/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://docs.langchain.com/langsmith/trace-with-langchain",
    "https://docs.langchain.com/oss/python/langchain/observability"
  ]
}
```
