Inspectopedia 2026.3 Help

LangSmith .env configuration

Reports LangSmith configuration mistakes in .env files that silently disable tracing or cause runtime errors: deprecated LANGCHAIN_* keys (canonical names are LANGSMITH_*), a legacy and modern key set to different values, a tracing flag that is not the lowercase string true, a wrong regional endpoint host (for example eu.smith.langchain.com instead of eu.api.smith.langchain.com), a missing API key, and tracing that is never enabled.

Example of problematic configuration:

LANGCHAIN_TRACING_V2=True LANGCHAIN_API_KEY=lsv2_sk_... LANGCHAIN_ENDPOINT=https://eu.smith.langchain.com

Quick fixes rename keys to their canonical form, normalize the tracing value, correct the endpoint host, and insert missing keys.

The inspection runs only in projects that depend on langsmith, langchain, or langgraph.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

LangSmithEnv
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | LangSmith

Inspection ID: LangSmithEnv

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection LangSmithEnv

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

PyCharm 2026.3,

Can be installed with plugin:

Python, 263.8438.0

Last modified: 20 November 2026