Configuring self-hosted n8n to send traces to LangSmith

HI there, I’m building an n8n self-hosted instance on Container Apps. I heard about LangSmith and thought I’d try to set it up and see what comes out. I added the environment variables to the container but no traces get logged. If someone has successfully configured their n8n instance to send traces to LangSmith, please let me know how you got it working. Also, there is discrepancy between what to call the environment variables. If you go to the LangSmith App, it names them LANGSMITH_ but when I ask GPT to search for details, it asserts that the variables should be named LANGCHAIN_.
The LangSmith docs also refer to “LANGSMITH_TRACING” but GPT said to use “LANGCHAIN_TRACING_V2”

Any guidance would be greatly appreciated! THanks for your consideration.

Hey! We use LANGSMITH_TRACING flag while using LangSmith SDK in the codebase. Since this is n8n we’re talking about, which largely uses LangChain under the hood, the LANGCHAIN_TRACING_V2 flag is expected here. You can check this guide right here:

Here’s the docs as well:

THank you sir. Can you comment on timing? How quickly from the time of running an n8n agent to the time the LangSmith Dashboard reports on it?
Have a great weekend!

Welcome, and hope you’ve had a great weekend too! Typically within a few seconds post execution completion.