Skip to content

Fix env var docs #813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ If you’re not seeing traces in your tracing project or notice traces logged to
First, check that the environment variables are set correctly by running:

```python
from langsmith import utils
import os

print(utils.get_env_var("LANGSMITH_PROJECT"))
print(utils.get_env_var("LANGSMITH_TRACING_V2"))
print(utils.get_env_var("LANGSMITH_ENDPOINT"))
print(utils.get_env_var("LANGSMITH_API_KEY"))
print(os.getenv("LANGSMITH_PROJECT"))
print(os.getenv("LANGSMITH_TRACING_V2"))
print(os.getenv("LANGSMITH_ENDPOINT"))
print(os.getenv("LANGSMITH_API_KEY"))
```

If the output does not match what’s defined in your .env file, it’s likely due to environment variable caching.
Expand Down
Loading