Langchain & Langsmith Integration fails
We've integrated Langchain in our convex app and it's working great.
But we can't get Langchain tracing to work at all. It simply does nothing on the convex backend. No errors. No logs. No traces on Langsmith. Nothing.
We've integrated following these docs:
https://docs.smith.langchain.com/observability/how_to_guides/tracing/trace_with_langchain
All the env vars are set in the Convex dashboard including the LANGCHAIN_CALLBACKS_BACKGROUND=false
But still no traces. No logs. No errors anywhere.
Ideas?
Trace with LangChain (Python and JS/TS) | 🦜️🛠️ LangSmith
LangSmith integrates seamlessly with LangChain (Python and JS), the popular open-source framework for building LLM applications.
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
The trick to making it work is to use “use node” at the top of the TS file.