Skip to content

Troubleshoot LangSmith logging issues #18226

Closed Answered by seanmavley
seanmavley asked this question in Q&A
Discussion options

You must be logged in to vote

My bad. If you're using something like systemd to run your process such as gunicorn, you'll need to declare the environments in there like below:

[Unit]
Description=Gunicorn Server for LLM application
After=network.target

[Service]
User=paperspace
Group=paperspace
WorkingDirectory=/home/server/apps/llm
Environment="LANGCHAIN_TRACING_V2=true"
Environment="LANGCHAIN_ENDPOINT='https://api.smith.langchain.com'"
Environment="LANGCHAIN_API_KEY='your key'"
Environment="PATH=/home/paperspace/apps/llm/venv/bin"
ExecStart=/home/server/apps/llm/venv/bin/gunicorn -b 0.0.0.0:8000 LLM.wsgi:application --workers 3

[Install]
WantedBy=multi-user.target

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@starascendin
Comment options

Answer selected by seanmavley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants