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:
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.
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:
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: | |
Can be installed with plugin: | Python, 263.8438.0 |